
/* ---- "css/theme.css" ----*/
@font-face {
font-family: "Akkurat";
src:
url( '../fonts/Akkurat.woff2') format('woff2'),
url( '../fonts/Akkurat.woff') format('woff');
font-weight: 400;
font-style: normal;
font-display: optional;
}
:root {
  --black: #000000;
  --white: #ffffff;
  /* Neutral greys */
  --grey-400: #acacac;
  --grey-500: #808080;
  --grey-600: #666666;
  --grey-700: #4d4d4d;
  --grey-800: #2a2a2a;
  --grey-900: #242424;
  --grey-1000: #191919;
  /* Semantic */
  --text-muted: var(--grey-500);
  /* Motion */
  --ui-fade: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  /* Typeface */
  --font-sans: Akkurat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    
  /* NEW: approximate reserved space for the nav when collapsed */
  --nav-reserved: 320px; /* tweak */
  --ui-gap: 16px;
    
  /* How much width we can safely use for the right rail */
  --panel-max: calc(100vw - var(--nav-reserved) - (var(--ui-gap) * 3));
  /* Final panel width: never exceed panel-max, never exceed your old max, never go below a minimum */
  --panel-w: clamp(280px, min(27.1875em, 92vw), var(--panel-max));
    
  /* tweak if your header padding changes */
  --benchmark-header-min: 56px;
}
* { box-sizing: border-box; }
html, body {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  margin: 0;
  padding: 0;
  background: #000;
}
body {
  margin: 0;
  font-family: var(--font-sans);
}
/* Put the IMAGE on its own fixed layer */
body::before{
  content: "";
  position: fixed;
  inset: -4px;                 /* overdraw kills 1px seams */
  z-index: 0;
  transform: translateZ(0);    /* helps GPU rounding */
}
body::after{
  content: "";
  position: fixed;
  inset: -4px;
  z-index: 1;
  /*--- map gradient ---
  background: radial-gradient(
    140% 80% at 50% 110%,
    #081E21 0%,
    rgba(8, 30, 33, 0.55) 22%,
    rgba(4, 9, 12, 0.18) 42%,
    rgba(4, 9, 12, 0) 68%
  );
  */
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translateZ(0);
}
/* =================================
LOGO
================================= */
.home { 
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 999;
}
.home img { 
    width: 120px;
}
/* Make sure UI layers above */
.nav, .panel-stack {
  position: relative;
  z-index: 1;
}
/* =================================
   PANEL STACK (right rail)
   - shrink-wrapped width
   - stable outer margins (not em-based)
   - grid: top flexes, bottom pinned
================================= */
.panel-stack {
	position: fixed;
	right: var(--ui-gap);
	top: var(--ui-gap);
	bottom: var(--ui-gap);
	display: grid;
	grid-template-rows: 1fr auto;
	gap: 0;
	z-index: 1000;
	/* shrink-wrap to panel width */
	inline-size: fit-content;
	max-inline-size: 92vw;
	overflow-x: clip;
	overflow-anchor: none;
	pointer-events: none;
}
.panel-stack__top {
  min-height: var(--benchmark-header-min);
  overflow: hidden;        /* critical: creates constrained box */
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* keeps closed Benchmark above Insight */
}
/* Bottom region is pinned */
.panel-stack__bottom {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;     /* allow children to shrink */
  overflow: visible; /* IMPORTANT: no scrolling here */
  justify-content: flex-end;
}
/* =================================
   KEY COMPONENT (collapsible like Insight)
================================= */
details.key {
  width: var(--panel-w);
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
    pointer-events: auto;
}
/* remove default marker */
details.key > summary { list-style: none; }
details.key > summary::-webkit-details-marker { display: none; }
.key__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  cursor: pointer;
  user-select: none;
}
details.key:not([open]) .key__header {
  padding: 20px 16px;
}
.key__label {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-muted);
}
.key__chev {
  width: 20px;
  height: 20px;
  display: block;
  color: var(--grey-500);
  transform: rotate(180deg);
  transition: none;
}
details.key[open] .key__chev {
  transform: rotate(0deg);
}
.key__header:hover .key__chev {
  color: var(--grey-400);
}
.key__rule {
  width: auto;
  height: 1px;
  background: var(--white);
  opacity: 0.2;
  margin: 0 16px;
}
details.key:not([open]) .key__rule { display: none; }
.key__body {
  padding: 20px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
details.key:not([open]) .key__body { display: none; }
/* keep your existing inner styles */
.key__title {
  margin: 0;
  font-size: 19.2px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  font-weight: 400;
}
.key__legend {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  padding-right: 24px;
}
.key__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.key__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--grey-600);
  flex: 0 0 auto;
}
.key__item-text {
  font-size: 14.4px;
  letter-spacing: 0.048px;
  line-height: 1;
  color: var(--text-muted);
  white-space: nowrap;
}
.key__dot--cobalt { background: #F2A44A; }
.key__dot--copper { background: #6FC6D8; }
.key__dot--disused { background: var(--grey-600); }
.key__note {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--text-muted);
  margin-top: 8px;
}
details.key > summary:focus-visible {
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 0.25em;
}
/* =================================
   INSIGHT PANEL
================================= */
details.insight {
  width: var(--panel-w);
  background: var(--black);
  color: var(--white);
  /* border-radius: 2px; */
  overflow: auto;
  font-size: 16px;
  font-family: var(--font-sans);
  min-height: 0;        /* critical */
  max-height: 100%;     /* can shrink when space is tight */
  display: flex;
  flex-direction: column;
    pointer-events: auto;
}
/* Only the Insight BODY scrolls */
details.insight[open] .insight__body{
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  scrollbar-gutter: stable;
  box-shadow: inset 0 -24px 24px -24px rgba(0,0,0,0.6);
}
details.insight > summary { list-style: none; }
details.insight > summary::-webkit-details-marker { display: none; }
.insight__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  cursor: pointer;
  user-select: none;
}
details.insight:not([open]) .insight__header {
  padding: 20px 16px;
}
.insight__label {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-muted);
}
.insight__chev {
  width: 20px;
  height: 20px;
  display: block;
  color: var(--grey-500);
  transform: rotate(180deg);
  transition: none;
}
details.insight[open] .insight__chev {
  transform: rotate(0deg);
}
.insight__header:hover .insight__chev {
  color: var(--grey-400);
}
.insight__rule {
  height: 1px;
  background: var(--white);
  opacity: 0.2;
  margin: 0 16px;
}
details.insight:not([open]) .insight__rule { 
  display: none; 
}
.insight__body {
  padding: 20px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.insight__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  font-weight: 400;
}
.insight__desc {
  margin: 0;
  color: var(--grey-500);
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  max-width: 988%;
}
.insight__controls {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.insight__year {
  font-size: 16px;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--white);
  white-space: nowrap;
}
.scrubber {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}
.scrubber__range {
  width: 100%;
  height: 40px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  min-width: 0;
}
.scrubber__range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.20);
}
.scrubber__range::-moz-range-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.20);
}
.scrubber__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0.1875em;
  height: 24px;
  border-radius: 99em;
  background: var(--white);
  margin-top: -8px;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.4);
}
.scrubber__range::-moz-range-thumb {
  width: 0.1875em;
  height: 24px;
  border-radius: 99em;
  border: none;
  background: var(--white);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.4);
}
.speed {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 0.4em;
  color: var(--white);
  cursor: pointer;
  transition: background-color var(--ui-fade);
  white-space: nowrap;
}
.speed:hover { background: var(--grey-1000); }
.speed:active { background: var(--grey-900); }
.speed__text {
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  font-family: var(--font-sans);
}
.speed__chev {
  width: 1.16px;
  height: 1.16px;
  opacity: 0.9;
}
.play {
  width: 3.25em;
  height: 3.25em;
  border-radius: 999em;
  border: none;
  background: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--ui-fade);
  flex: 0 0 auto;
}
.play:hover { background: var(--grey-400); }
.play:active { background: var(--grey-600); }
.play__icon {
  width: 1.7em;
  height: 1.7em;
  display: block;
}
.play:focus-visible,
.speed:focus-visible,
details.insight > summary:focus-visible,
.scrubber__range:focus-visible {
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 0.25em;
}
/* -------------------------------------------------------------------------------------------------------------- */
/* ==============================
   Desktop (1600px+)
============================== */
@media (min-width: 1600px) {
    
    .home { 
        position: fixed;
        top: 24px;
        left: 24px;
        z-index: 999;
    }
    .home img { 
        width: 140px;
    }
    
  :root {
    --panel-w: min(32em, 92vw);
  }
    
    .key__header {
      padding: 16px 24px 12px;
    }
    
    .key__label {
      font-size: 13px;
      letter-spacing: 0.05em;
      line-height: 1;
    }
    
    .key__title {
      margin: 0;
      font-size: 24px;
      letter-spacing: 0.02em;
      line-height: 1.2;
    }
    .key__item-text {
      font-size: 14px;
      letter-spacing: 0.048em;
      line-height: 1;
    }
    .key__note {
      margin: 0;
      font-size: 14px;
      letter-spacing: 0.04em;
      line-height: 1.35;
    }
    .key__legend{
        flex-wrap: wrap;
        row-gap: 10px;
    }
    
    .key__body {
      padding: 32px 24px 32px;
      gap: 24px;
    }
    .key__rule {
      margin: 0 24px;
    }
    
 /* -- Insight ------------------------------------------------------------------------------------------------------------------------*/
    
    .insight__header {
      padding: 16px 24px 12px;
    }
    details.insight:not([open]) .insight__header {
      padding: 20px 16px;
    }
    .insight__label {
      font-size: 13px;
      letter-spacing: 0.05em;
    }
    .insight__body {
      padding: 32px 24px 24px;
      gap: 16px;
    }
    .insight__title {
      margin: 0;
      font-size: 24px;
      line-height: 1.2;
      letter-spacing: 0.02em;
    }
    .insight__desc {
      margin: 0;
      color: var(--grey-500);
      font-size: 16px;
      line-height: 1.25;
      letter-spacing: 0.02em;
      max-width: 96%;
    }
    .insight__controls {
      margin-top: 4px;
      gap: 16px;
    }
    .insight__year {
      font-size: 14px;
      letter-spacing: 0.05em;
      line-height: 1;
    }
    .speed__text {
      font-size: 14px;
    }
    .insight__rule {
      margin: 0 24px;
  }
}
/* ==============================
   Event / Ultra-wide (2048px+)
============================== */
@media (min-width: 2048px){
    
    .home { 
        position: fixed;
        top: 24px;
        left: 24px;
        z-index: 999;
    }
    .home img { 
        width: 160px;
    }
    
  :root {
    --panel-w: min(36em, 92vw);
  }
    
    .key__header {
      padding: 16px 24px 12px;
    }
    
    details.key:not([open]) .key__header {
        padding: 20px 24px;
    }
    
    .key__label {
      font-size: 14px;
      letter-spacing: 0.05em;
      line-height: 1;
    }
    
    .key__title {
      margin: 0;
      font-size: 28px;
      letter-spacing: 0.02em;
      line-height: 1.2;
    }
    .key__item-text {
      font-size: 16px;
      letter-spacing: 0.048em;
      line-height: 1;
    }
    .key__note {
      margin: 0;
      font-size: 16px;
      letter-spacing: 0.04em;
      line-height: 1.35;
    }
    .key__legend{
        flex-wrap: wrap;
        row-gap: 10px;
    }
    
    .key__body {
      padding: 32px 24px 48px;
      gap: 24px;
    }
    .key__rule {
      margin: 0 24px;
    }
    
 /* -- Insight ------------------------------------------------------------------------------------------------------------------------*/   
    
    
    .insight__header {
      padding: 16px 24px 12px;
    }
    details.insight:not([open]) .insight__header {
      padding: 20px 24px;
    }
    .insight__label {
      font-size: 14px;
      letter-spacing: 0.05em;
    }
    .insight__body {
      padding: 32px 24px 40px;
      gap: 24px;
    }
    .insight__title {
      margin: 0;
      font-size: 28px;
      line-height: 1.2;
      letter-spacing: 0.02em;
    }
    .insight__desc {
      margin: 0;
      color: var(--grey-500);
      font-size: 16px;
      line-height: 1.25;
      letter-spacing: 0.02em;
      max-width: 96%;
    }
    .insight__controls {
      margin-top: 4px;
      gap: 16px;
    }
    .insight__year {
      font-size: 16px;
      letter-spacing: 0.05em;
      line-height: 1;
    }
    .speed__text {
      font-size: 16px;
    }
    .insight__rule {
      height: 1px;
      background: var(--white);
      opacity: 0.2;
      margin: 0 24px;
  }
}
}
/* ==============================
   Tablet (1303px)
============================== */
@media (max-width: 1303px) {
  .nav.nav--expanded ~ .panel-stack {
    display: none;
  }
}
/* ==============================
   Mobile (970px)
============================== */
@media (max-width: 970px){
    
      :root {
        --ui-gap: 6px;
        
      }
    
    .home { 
        position: fixed;
        top: 14px;
        left: 14px;
    }
    .home img { 
        width: 100px;
    }
    .panel-stack {
      right: var(--ui-gap);
      bottom: var(--ui-gap);
      top: var(--ui-gap);
      display: grid;
      grid-template-rows: 1fr auto;
      gap: 0;
      z-index: 1000;
      /* shrink-wrap to panel width */
      inline-size: fit-content;
      max-inline-size: 92vw;
      overflow-x: clip;
      overflow-anchor: none;
    }
    
    .panel-stack * { min-width: 0; }
     /* -- Key ------------------------------------------------------------------------------------------------------------------------*/
    .key__title {
      margin: 0;
      font-size: 16px;
      letter-spacing: 0.02em;
      line-height: 1.2;
      font-weight: 400;
    }
    .key__item-text {
      font-size: 14px;
      letter-spacing: 0.048em;
      line-height: 1;
      color: var(--text-muted);
      white-space: nowrap;
    }
    .key__note {
      margin: 0;
      font-size: 12px;
      letter-spacing: 0.04em;
      line-height: 1.35;
      color: var(--text-muted);
    }
      .key__legend{
        flex-wrap: wrap;
        row-gap: 10px;
      }
      .key__item-text{
        white-space: normal;
      }
     /* -- Insight ------------------------------------------------------------------------------------------------------------------------*/   
    .insight__header {
      padding: 16px 16px 12px;
    }
    details.insight:not([open]) .insight__header {
      padding: 20px 16px;
    }
    .insight__label {
      font-size: 12px;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      line-height: 1;
      color: var(--text-muted);
    }
    .insight__chev {
      width: 20px;
      height: 20px;
      display: block;
      color: var(--grey-500);
      transition: none;
    }
    .insight__body {
      padding: 20px 16px 20px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .insight__title {
      margin: 0;
      font-size: 18px;
      line-height: 1.2;
      letter-spacing: 0.02em;
      font-weight: 400;
    }
    .insight__desc {
      margin: 0;
      color: var(--grey-500);
      font-size: 14px;
      line-height: 1.25;
      letter-spacing: 0.02em;
      max-width: 96%;
    }
    .insight__controls {
      margin-top: 4px;
      display: flex;
      align-items: center;
      gap: 16px;
      min-width: 0;
    }
    .insight__year {
      font-size: 14px;
      letter-spacing: 0.05em;
      line-height: 1;
      color: var(--white);
      white-space: nowrap;
    }
    .speed__text {
      font-size: 14px;
    }
}
@media (max-height: 556px) {
  .key__header {
    box-shadow: 0 -12px 24px rgba(0,0,0,0.6);
  }
}
.app {
  display: block;
}
/* ==============================
   BENCHMARKING BLOCK (NEW)
   - matches Insight/Key spacing + breakpoints
   - lives inside .panel-stack__bottom
============================== */
details.benchmark{
  width: var(--panel-w);
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
    pointer-events: auto;
}
/* remove default marker */
details.benchmark > summary{ list-style: none; }
details.benchmark > summary::-webkit-details-marker{ display: none; }
.benchmark__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  cursor: pointer;
  user-select: none;
}
details.benchmark:not([open]) .benchmark__header{
  padding: 20px 16px;
}
.benchmark__label{
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-muted);
}
.benchmark__chev{
  width: 20px;
  height: 20px;
  display: block;
  color: var(--grey-500);
  transform: rotate(180deg);
}
details.benchmark[open] .benchmark__chev{ transform: rotate(0deg); }
.benchmark__rule{
  height: 1px;
  background: var(--white);
  opacity: 0.2;
  margin: 0 16px;
}
details.benchmark:not([open]) .benchmark__rule{ display: none; }
.benchmark__body{
  padding: 20px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}
details.benchmark:not([open]) .benchmark__body{ display:none; }
.benchmark__title{
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-weight: 400;
}
.benchmark__subtitle{
  margin: 0;
  color: var(--grey-500);
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  max-width: 96%;
}
.bar-chart{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bar-chart__axis{
  display: flex;
  justify-content: space-between;
  padding-left: 136px; /* aligns with bar labels */
  font-size: 14px;
  color: var(--grey-600);
  letter-spacing: 0.02em;
}
.bar{
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  align-items: center;
  min-width: 0;
}
.bar__label{
  text-align: right;
  color: var(--grey-600);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.bar__track{
  height: 26px;
  min-width: 0;
}
.bar__fill{
  height: 100%;
  width: var(--w);
  background: var(--c);
}
.bar__value{
  font-size: 14px;
  color: var(--grey-600);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.benchmark__meta{
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.benchmark__year{
  font-size: 20px;
  letter-spacing: 0.05em;
  color: var(--white);
  white-space: nowrap;
}
.benchmark__total{
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--grey-500);
}
.benchmark__divider{
  height: 1px;
  background: var(--white);
  opacity: 0.2;
  margin-top: 4px;
}
.trend{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}
.pause{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: none;
  background: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pause:hover{ background: var(--grey-400); }
.pause:active{ background: var(--grey-600); }
.line-chart{
  height: 96px;
  border-left: 2px solid rgba(255,255,255,0.25);
  border-bottom: 2px solid rgba(255,255,255,0.25);
}
.benchmark__source{
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin-top: 8px;
}
/* focus */
details.benchmark > summary:focus-visible,
.pause:focus-visible{
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 0.25em;
}
/* --- Desktop (1600px+) matches your Insight spacing --- */
@media (min-width: 1600px){
  .benchmark__header{ padding: 16px 24px 12px; }
  details.benchmark:not([open]) .benchmark__header{ padding: 20px 24px; }
  .benchmark__rule{ margin: 0 24px; }
  .benchmark__body{ padding: 32px 24px 24px; gap: 16px; }
  .benchmark__title{ font-size: 24px; line-height: 1.2; }
  .benchmark__subtitle{ font-size: 16px; }
}
/* --- Ultra-wide (2048px+) --- */
@media (min-width: 2048px){
  .benchmark__header{ padding: 16px 24px 12px; }
  details.benchmark:not([open]) .benchmark__header{ padding: 20px 24px; }
  .benchmark__rule{ margin: 0 24px; }
  .benchmark__body{ padding: 32px 24px 40px; gap: 24px; }
  .benchmark__title{ font-size: 28px; }
  .benchmark__subtitle{ font-size: 16px; }
}
/* --- Mobile (970px) keep your smaller type rhythm --- */
@media (max-width: 970px){
  .benchmark__title{ font-size: 18px; }
  .benchmark__subtitle{ font-size: 14px; }
  .bar-chart__axis{ padding-left: 120px; }
  .bar{ grid-template-columns: 104px 1fr auto; }
  .pause{ width: 48px; height: 48px; }
}
/* ---- "css/navigation.css" ----*/
/* ==============================
   NAV COMPONENT
   Laptop sizing (1440px)
============================== */
.nav {
  position: fixed;
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px 0 0;
  border-radius: 2px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  width: auto;
  height: auto;
  z-index: 9999;
}
/* ------------------------------
   Header containers
------------------------------ */
.nav__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 14px;
  padding-bottom: 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.nav__header-collapsed { 
  display: flex; 
}
.nav__header-expanded { 
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  width: max-content;
  position: relative;
  flex: 0 0 auto;
  min-height: 44px; /* or 48/56 */
  padding-top: 10px;
  padding-bottom: 10px;
}
.nav.nav--expanded .nav__header-collapsed { 
  display: none; 
}
.nav.nav--expanded .nav__header-expanded {
  display: flex;
}
.nav__label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-muted);
}
.nav__rule {
  width: 100%;
  height: 1px;
  background: var(--white);
  opacity: 0.2;
  display: none;
}
.nav:not(.nav--expanded) .nav__header {
  padding-bottom: 10px;
}
/* ------------------------------
   Expanded tabs
------------------------------ */
.nav__tab {
  background: transparent;
  border: none;
  padding: 4px 8px;
  margin: 0;
  cursor: pointer;
  color: var(--grey-600);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
  transition: color var(--ui-fade);
  white-space: nowrap;
}
.nav__tab:hover { 
  color: var(--grey-400); 
}
.nav__tab.is-active {
  color: var(--white);
  position: relative;
}
.nav__header-expanded[role="tablist"] {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.nav__header-expanded .nav__rule {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(12px + 35.2px);
}
.nav__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.88em;
  height: 0.08em;
  background: var(--white);
  opacity: 0.9;
}
/* ------------------------------
   Expanded body (pages)
------------------------------ */
.nav__body {
  display: none; 
}
.nav__page { 
  display: none; 
}
.nav__page.is-active { 
  display: block; 
}
/* ------------------------------
   Footer (your current row, split)
------------------------------ */
.nav__footer {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  /* footer becomes the sealing surface */
  padding: 10px 14px 14px;
  background: var(--black);
  /* ensures it visually covers scrolling content */
  z-index: 2;
}
.nav__footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__divider {
  width: 1.5px;
  background: var(--white);
  opacity: 0.2;
}
/* ------------------------------
   Buttons / Icons (your existing)
------------------------------ */
.icon-btn {
  width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 3px;
  transition: background-color var(--ui-fade);
}
.icon-btn:hover { 
    background-color: var(--grey-1000); 
}
.icon-btn:active { 
  background-color: var(--grey-900); 
}
.icon-btn:focus-visible {
  outline:2px solid rgba(255,255,255,0.6);
  outline-offset: 3px;
}
svg { 
  display:block; 
}
.icon-btn--back > svg,
.nav-arrows .icon-btn > svg {
  width: 40px;
}
/* ------------------------------
   Menu bits (your existing)
------------------------------ */
.menu {
  display: flex;
  align-items: center;
  gap: 16px;
}
.title-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.title-kicker {
  position: absolute;
  top: -11px;
  right: 0;
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--white);
  opacity: 0.9;
  white-space: nowrap;
}
.menu__title {
  display: inline-block;
  width: 157px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-right: 16px;
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--grey-600);
  text-decoration-skip-ink: auto;
  cursor: pointer;
  transition: text-decoration-color var(--ui-fade);
}
.menu__title:hover { 
  text-decoration-color: var(--grey-400); 
}
.menu__title:active { 
  text-decoration-color: var(--white); 
}
.menu__title:focus-visible {
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 4px;
}
.nav.nav--expanded .menu__title {
  width: auto;
  max-width: 40ch;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--grey-500);
  text-decoration-color: rgba(255,255,255,0.25);
}
/* ------------------------------
   Pill
------------------------------ */
.pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--grey-1000);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ui-fade);
}
.pill:hover { 
  background: var(--grey-900); 
}
.pill:active { 
  background: var(--grey-800); 
}
.pill:focus-visible{
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 0.1875em;
}
.pill__num {
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 1px;
}
.pill__num:last-child { 
  color: var(--grey-600); 
}
.pill__divider {
  width: 0.5625em;
  height: 1.0625em;
  opacity: 0.15;
}
/* ==============================
   EXPANDED STATE
   - width hugs tab bar
   - body cannot widen nav
============================== */
.nav.nav--expanded {
  width: fit-content;
  max-width: 92vw;
  max-height: calc(100vh - 32px);
  overflow: hidden;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
}
.nav.nav--expanded .nav__body {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  contain: inline-size;
  width: 100%;
  max-width: 100%;
  overflow-y: scroll;
}
  .nav.nav--expanded .title-kicker {
    display: none;
  }
/* ==============================
   MEGA MENU (middle content)
============================== */
.nav__mega {
  display: grid;
  grid-template-columns: 0.9fr 1px 1fr;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 24px;
  margin-top: 14px;
  height: 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.nav__mega-divider {
  width: 1px;
  background: rgba(255,255,255,0.14);
}
.nav__mega-left {
  display: flex;
  flex-direction: column;
  gap: 18px;              
  padding-top: 8px;       
  padding-left: 16px;
  min-width: 0;
}
.nav__hero-media {
  width: 224px;        
  height: 224px;           
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.12),
    0 0 0 7.2px rgba(0,0,0,0.6); 
}
.nav__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nav__hero-title {
  margin: 0;
  font-size: 32px;        
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0px;     
}
.nav__hero-sup {
  font-size: 11px;        
  vertical-align: super;
  margin-left: 0.16px;
  opacity: 0.9;
  display: none;
}
.nav__hero-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  max-width: 32ch;
  color: var(--grey-500);
  letter-spacing: 0.32px
}
.nav__mega-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 0;
  min-width: 0;
  padding: 0 24px 0 20px;
  margin-top: 14px;
}
.nav__link {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 20px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  min-width: 0;
}
.nav__link-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.10);
}
.nav__link-icon img {
  width: 100%;
  height: 100%;
  opacity: 0.9;
}
.nav__link-label {
  font-size: 15px;
  letter-spacing: 0.016em;
  text-decoration: underline;
  text-decoration-thickness: 0.96px;
  text-underline-offset: 3.52px;
  text-decoration-color: rgba(255,255,255,0.22);
  display: block;
  min-width: 0;
  white-space: wrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: text-decoration-color var(--ui-fade);
}
.nav__link-label:hover {
  text-decoration-color: rgba(255,255,255,0.5);
}
.nav__link-label:active {
  text-decoration-color: rgba(255,255,255,0.8);
}
.nav__link-num {
  font-size: 14.4px;      
  letter-spacing: 0.96px;
  color: rgba(255,255,255,0.35);
  height: 100%;
}
.nav__link.is-active {
  color: rgba(255,255,255,0.95);
}
.nav__link.is-active .nav__link-icon {
  background: rgba(255,255,255,0.95);
}
.nav__link.is-active .nav__link-icon img {
  filter: invert(1);
}
.nav__link.is-active .nav__link-label{
  text-decoration-color: rgba(255,255,255,0.55);
}
.nav__link.is-active .nav__link-num{
  color: rgba(255,255,255,0.65);
}
.nav__link.is-active {
  pointer-events: none;
  cursor: default;
}
.nav__link.is-active .nav__link-label {
  text-decoration: none;
}
.nav--expanded .pill,
.nav--expanded .nav-arrows {
  opacity: 0.3;
  pointer-events: none;
}
.nav--expanded .nav__divider { 
  display: none;
}
.nav--expanded .title-kicker {
  color: var(--grey-500);  
}
.nav.nav--expanded .nav__footer {
  box-shadow: 0 -12px 24px rgba(0,0,0,0.6);
}
/* ==============================
   Desktop (1600px+)
============================== --------------------------------------------------------------------*/
@media (min-width: 1600px) {
    .nav {
      position: fixed;
      left: 16px;
      bottom: 16px;
      display: flex;
      flex-direction: column;
      gap: 0;
      padding: 16px 0 0;
    }
    
    .nav__header {
      gap: 10px;
      margin: 0 16px;
    }
    .nav__header-expanded {
      gap: 20px;
      min-height: 36px; /* or 48/56 */
      padding-top: 10px;
      padding-bottom: 10px;
    }
    .nav__label {
      font-size: 13px;
      letter-spacing: 0.07em;
      line-height: 1;
    }
    .nav:not(.nav--expanded) .nav__header {
      padding-bottom: 12px;
    }
    
/* ------------------------------
   Expanded tabs
------------------------------ */
    .nav__tab {
      padding: 0;
      margin: 0;
      font-size: 13px;
      letter-spacing: 0.07em;
      line-height: 1;
    }
    .nav__header-expanded[role="tablist"] {
      gap: 28px;
    }
    .nav__header-expanded .nav__rule {
      left: 16px;
      right: 16px;
      top: calc(12px + 35.2px);
    }
    .nav__tab.is-active::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -0.88em;
      height: 0.08em;
      background: var(--white);
      opacity: 0.9;
    }
    
    
    /* ------------------------------
       Footer (your current row, split)
    ------------------------------ */
    .nav__footer {
      gap: 16px;
      padding: 18px 16px 16px;
      z-index: 2;
    }
    .nav__footer-left {
      gap: 16px;
    }
    .nav__footer-right {
      gap: 16px;
    }
    .nav__divider {
      width: 1.5px;
      opacity: 0.2;
    }
    
    /* ------------------------------
       Buttons / Icons (your existing)
    ------------------------------ */
    .icon-btn {
      width: 48px;
      padding: 0;
      border-radius: 3px;
    }
    .icon-btn--back > svg,
    .nav-arrows .icon-btn > svg {
      width: 48px;
    }
    .nav-arrows { 
        display: flex;
        gap: 8px;
    }
    /* ------------------------------
       Menu bits (your existing)
    ------------------------------ */
    .menu {
      gap: 8px;
    }
    .title-kicker {
      position: absolute;
      top: -11px;
      right: 0;
      font-size: 12.5px;
      letter-spacing: 0.03em;
      line-height: 1;
    }
    .menu__title {
      width: 200px;
      margin-right: 20px;
      font-size: 16px;
      letter-spacing: 0.02em;
      line-height: 1.2;
      color: var(--white);
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: 3px;
    }
    .nav.nav--expanded .menu__title {
      max-width: 40ch;
    }
    /* ------------------------------
       Pill
    ------------------------------ */
    .pill {
      gap: 8px;
      padding: 12px 17px;
      border-radius: 999px;
    }
    .pill__num {
      font-size: 15px;
      line-height: 1;
      letter-spacing: 1px;
    }
    
    /* ==============================
       EXPANDED STATE
       - width hugs tab bar
       - body cannot widen nav
    ============================== */
    .nav.nav--expanded {
      max-width: 92vw;
      max-height: calc(100vh - 32px);
      padding-top: 8px;
    }
    /* ==============================
       MEGA MENU (middle content)
    ============================== */
    .nav__mega {
      display: grid;
      grid-template-columns: 0.9fr 1px 1fr;
      gap: 16px;
      padding-top: 16px;
      padding-bottom: 32px;
      margin-top: 16px;
    }
    .nav__mega-left {
      gap: 24px;
      padding-top: 16px;
      padding-left: 24px;
      min-width: 0;
    }
    .nav__hero-media {
      width: 200px;        
      height: 200px;           
      border-radius: 999px;
      box-shadow:
        0 0 0 2px rgba(255,255,255,0.12),
        0 0 0 7.2px rgba(0,0,0,0.6); 
    }
    .nav__hero-title {
      margin: 0;
      font-size: 32px;
      font-weight: 400;
      line-height: 1.2;
      letter-spacing: 0px;
    }
    .nav__hero-sup {
      font-size: 11px;        
      margin-left: 0.16px;
      opacity: 0.9;
    }
    .nav__hero-desc {
      margin: 0;
      font-size: 15px;
      line-height: 1.2;
      max-width: 36ch;
      letter-spacing: 0.32px
    }
    .nav__mega-right {
      gap: 32px;
      padding-top: 0;
      min-width: 0;
      padding: 0 24px 0 20px;
      margin-top: 14px;
    }
    .nav__link {
      grid-template-columns: 40px 1fr auto;
      gap: 20px;
    }
    .nav__link-icon {
      width: 40px;
      height: 40px;
    }
    .nav__link-label {
      font-size: 16px;
      letter-spacing: 0.016em;
      text-decoration: underline;
      text-decoration-thickness: 0.96px;
      text-underline-offset: 3.52px;
      text-decoration-color: rgba(255,255,255,0.22);
      display: block;
      min-width: 0;
      white-space: wrap;
      overflow: hidden;
      text-overflow: ellipsis;
      transition: text-decoration-color var(--ui-fade);
    }
    .nav__link-num {
      font-size: 14.4px;      
      letter-spacing: 0.96px;
    }
    
}
/* ==============================
   Event / Ultra-wide (2048px+)
============================== */
@media (min-width: 2048px){
    
    .nav {
      position: fixed;
      left: 16px;
      bottom: 16px;
      display: flex;
      flex-direction: column;
      gap: 0;
      padding: 20px 0 0;
      border-radius: 2px;
      background: var(--black);
      color: var(--white);
      font-family: var(--font-sans);
      width: auto;
      height: auto;
      z-index: 9999;
    }
    
    .nav__header {
      gap: 10px;
      margin: 0 24px;
    }
    .nav__header-expanded {
      gap: 20px;
      min-height: 36px; /* or 48/56 */
      padding-top: 10px;
      padding-bottom: 10px;
    }
    .nav__label {
      font-size: 14px;
      letter-spacing: 0.07em;
      line-height: 1;
    }
    .nav:not(.nav--expanded) .nav__header {
      padding-bottom: 10px;
    }
    
/* ------------------------------
   Expanded tabs
------------------------------ */
    .nav__tab {
      padding: 0;
      margin: 0;
      font-size: 13.5px;
      letter-spacing: 0.07em;
      line-height: 1;
    }
    .nav__header-expanded[role="tablist"] {
      gap: 32px;
    }
    .nav__header-expanded .nav__rule {
      left: 16px;
      right: 16px;
      top: calc(12px + 35.2px);
    }
    .nav__tab.is-active::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -0.88em;
      height: 0.08em;
      background: var(--white);
      opacity: 0.9;
    }
    
    
    /* ------------------------------
       Footer (your current row, split)
    ------------------------------ */
    .nav__footer {
      gap: 24px;
      padding: 20px 24px 20px;
      z-index: 2;
    }
    .nav__footer-left {
      gap: 24px;
    }
    .nav__footer-right {
      gap: 24px;
    }
    .nav__divider {
      width: 1.5px;
      opacity: 0.2;
    }
    
    /* ------------------------------
       Buttons / Icons (your existing)
    ------------------------------ */
    .icon-btn {
      width: 48px;
      padding: 0;
      border-radius: 3px;
    }
    .icon-btn--back > svg,
    .nav-arrows .icon-btn > svg {
      width: 48px;
    }
    .nav-arrows { 
        display: flex;
        gap: 8px;
    }
    /* ------------------------------
       Menu bits (your existing)
    ------------------------------ */
    .menu {
      gap: 16px;
    }
    .title-kicker {
      position: absolute;
      top: -11px;
      right: 0;
      font-size: 13px;
      letter-spacing: 0.03em;
      line-height: 1;
    }
    .menu__title {
      width: 220px;
      margin-right: 20px;
      font-size: 18px;
      letter-spacing: 0.02em;
      line-height: 1.2;
      color: var(--white);
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: 3px;
    }
    .nav.nav--expanded .menu__title {
      max-width: 40ch;
    }
    /* ------------------------------
       Pill
    ------------------------------ */
    .pill {
      gap: 8px;
      padding: 12px 17px;
      border-radius: 999px;
    }
    .pill__num {
      font-size: 16px;
      line-height: 1;
      letter-spacing: 1px;
    }
    
    /* ==============================
       EXPANDED STATE
       - width hugs tab bar
       - body cannot widen nav
    ============================== */
    .nav.nav--expanded {
      max-width: 92vw;
      max-height: calc(100vh - 32px);
      padding-top: 10px;
    }
    /* ==============================
       MEGA MENU (middle content)
    ============================== */
    .nav__mega {
      display: grid;
      grid-template-columns: 0.9fr 1px 1fr;
      gap: 24px;
      padding-top: 16px;
      padding-bottom: 32px;
      margin-top: 14px;
    }
    .nav__mega-left {
      gap: 24px;
      padding-top: 16px;
      padding-left: 24px;
      min-width: 0;
    }
    .nav__hero-media {
      width: 224px;        
      height: 224px;           
      border-radius: 999px;
      box-shadow:
        0 0 0 2px rgba(255,255,255,0.12),
        0 0 0 7.2px rgba(0,0,0,0.6); 
    }
    .nav__hero-title {
      margin: 0;
      font-size: 40px;
      font-weight: 400;
      line-height: 1.2;
      letter-spacing: 0px;
    }
    .nav__hero-sup {
      font-size: 11px;        
      margin-left: 0.16px;
      opacity: 0.9;
    }
    .nav__hero-desc {
      margin: 0;
      font-size: 16px;
      line-height: 1.2;
      max-width: 36ch;
      letter-spacing: 0.32px
    }
    .nav__mega-right {
      gap: 32px;
      padding-top: 0;
      min-width: 0;
      padding: 0 32px 0 20px;
      margin-top: 14px;
    }
    .nav__link {
      grid-template-columns: 40px 1fr auto;
      gap: 20px;
    }
    .nav__link-icon {
      width: 40px;
      height: 40px;
    }
    .nav__link-label {
      font-size: 18px;
      letter-spacing: 0.016em;
      text-decoration: underline;
      text-decoration-thickness: 0.96px;
      text-underline-offset: 3.52px;
      text-decoration-color: rgba(255,255,255,0.22);
      display: block;
      min-width: 0;
      white-space: wrap;
      overflow: hidden;
      text-overflow: ellipsis;
      transition: text-decoration-color var(--ui-fade);
    }
    .nav__link-num {
      font-size: 14.4px;      
      letter-spacing: 0.96px;
    }
}
/* ==============================
   Tablet (1303px)
============================== */
@media (max-width: 1303px){
  
.nav.nav--expanded {
  max-width: none;
  min-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow: hidden;
  padding-top: 14px;
}
}
/* ==============================
   Mobile (970px)
============================== */
.icon-btn--back { 
  display: block;
}
.icon-btn--hamburger,
.icon-btn--close { 
  display: none;
}
.icon-btn--close svg { 
  width: 26px;
  height: 26px;
}
@media (max-width: 970px){
    
    
      /* mobile: hide the desktop back button */
      .icon-btn--back{
        display: none;
      }
      /* mobile default (menu collapsed): show hamburger, hide close */
      .icon-btn--hamburger{
        display: none;
      }
      .icon-btn--close{
        display: none;
      }
      /* mobile expanded: swap hamburger -> close */
      .nav.nav--expanded .icon-btn--hamburger{
        display: none;
      }
      .nav.nav--expanded .icon-btn--close{
        display: block;
      }
    
  .nav {
      left: 6px;
      bottom: 6px;
      padding: 0;
    }
    
  .nav.nav--expanded {
      max-width: calc(100vw - 12px);
      min-width: calc(100vw - 12px);
      max-height: calc(100vh - 12px);
      overflow: hidden;
      padding-top: 0;
    }
  .nav__header {
    display: none;
    flex: 0 0 auto;
  }
    
  .nav.nav--expanded .nav__header {
    display: flex;
    overflow-x: scroll;
    scrollbar-width: none;
    position: relative;
    flex: 0 0 auto;
    min-height: 26px; /* pick what looks right */
  }
  .nav.nav--expanded .nav__header::-webkit-scrollbar {
    display: none;              /* Chrome, Safari, Edge */
  }
    
    .nav.nav--expanded .nav__header::after {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      width: 24px; /* shadow depth */
      pointer-events: none;
      background: linear-gradient(
        to left,
        rgba(0,0,0,0.9),
        rgba(0,0,0,0)
      );
    }
  .pill {
    display: none;
  }
    
    .nav__footer { 
        padding: 6px;
    }
    
    .nav__footer-left {
      display: flex;
      align-items: center;
      gap: 14px;
      padding-left: 10px;
    }
    
    .nav__mega {
      grid-template-columns: 1fr;
      padding-top: 0;
      gap: 0;
    }
    
    .nav__mega-left{ 
        display: none;
    }
}
/* ---- "css/style.css" ----*/
@font-face {
  font-family: "Akkurat";
  src:
    url("fonts/Akkurat.woff2") format("woff2"),
    url("fonts/Akkurat.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.hidden-elements {
  display: none !important;
}
/*--- general settings ---*/
* {
  /* flex-direction: column; */
  /* font-family: Akkurat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; */
}
body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #181820;
  color: #eee;
  overflow: hidden;
}
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  xbackground: url("_overlay.png") no-repeat center top;
  background: url("_overlay-pillar.png") no-repeat center top;
  xbackground: url("_overlay-home.png") no-repeat center top;
  background-size: cover;
  opacity: 0.5;
  pointer-events: none;
  z-index: 9999;
  image-rendering: pixelated;
}
* {
  x-border: 1px solid #0f0;
  user-select: none;
}
h1 {
  font-size: 4em;
  text-align: center;
}
#loading-screen {
  position: fixed;
  display: block;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 99999999999;
  margin: 0;
  padding: 0;
  user-select: none;
}
/*---------------------------------------- Home ----------------------------------------*/
/*---------------------------------------- Pillars ----------------------------------------*/
.pillar-bubble {
  position: absolute;
  display: flex;
  width: 160px;
  height: 160px;
  transform-origin: 0 0;
  transform: translate(-50%, -50%);
  justify-content: center;
  align-items: center;
  border: 1px solid #eee;
  border-radius: 100px;
  cursor: pointer;
  transition:
    width 1.5s ease,
    height 1.5s ease,
    border-radius 1.5s ease;
}
.view-pillar .pillar-bubble {
  width: 680px;
  height: 680px;
  border-radius: 400px;
}
.pillar-bubble span {
  padding: 20px;
  text-align: center;
}
#home-title {
  font-size: 3em;
  font-weight: 400;
  pointer-events: none;
  z-index: 1;
}
.pillar-story-list-item {
  position: absolute;
  top: 0px;
  left: 0px;
}
#pillar-text-container {
  position: absolute;
  display: none;
  left: 98px;
  top: 41%;
  width: 500px;
  flex-direction: column;
  align-items: normal;
  text-align: left;
}
.pillar-text-header {
  display: block;
  align-self: flex-start;
}
.pillar-text-content {
  display: block;
  align-self: flex-start;
}
#pillar-story-template {
  display: none;
}
.pillar-story-list-item {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.pillar-story-header {
  text-decoration: underline;
  cursor: pointer;
}
.view-hidden #map {
  display: none;
}
#map {
  position: absolute;
  display: block;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100vh;
}
#select-story {
  position: absolute;
  bottom: 50px;
}
#back-arrow {
  position: absolute;
  display: flex;
  width: 50px;
  height: 50px;
  top: calc(50% - 200px);
  left: calc(50% - 200px);
  border: 1px solid #fff;
  border-radius: 40px;
  align-items: center;
  text-align: center;
  justify-content: center;
  cursor: pointer;
}
#widget {
  position: absolute;
  display: flex;
  left: 40px;
  bottom: 40px;
  padding: 20px;
  border: 1px solid #fff;
}
h1 {
  font-size: 4.4em;
  text-align: center;
  font-weight: 100;
  letter-spacing: 0.02em;
}
h1 sup {
  font-size: 0.5em;
  vertical-align: 1.2em;
}
/*---------------------------------------- Map-specific ----------------------------------------*/
/* ---- "css/particles.css" ----*/
#canvas-webgl {
	position:absolute;
	display: block;
	left:0px;
	top:0px;
	width:100%;
	height:100%;
	margin:0px;
	padding:0px;
	z-index: 0;
	pointer-events: none;
}
.attractor-debug {
	position: absolute;
	display: block;
	transform-origin:0 0;
	transform: translate(-50%, -50%);
	width:10px;
	height:10px;
	background-color: #3f8;
}
/*----- options menu -----*/
#options {
	position: fixed;
	display: block;
	top: 10px;
	left: 10px;
	color: #eee;
	font-size: 14px;
	background-color: #0008;
	z-index: 2;
}
#options table {
	position: absolute;
	display: block;
	width: max-content;
	padding: 10px 10px;
	border-collapse: collapse;
	border-radius: 8px;
	border:1px solid #eee8;
	color: #f0f0f0;
	font-family: sans-serif;
	background-color:#0008;
	overflow: hidden;
}
#options td * {
	vertical-align: middle;
}
#options td span {
	margin-right: 8px;
}
#options input[type="range"] {
	accent-color: #4cafef;
}
#options select {
	width: 100%;
	padding: 2px 5px;
	border-radius: 4px;
	border: 1px solid #555;
	background: #222;
	color: #f0f0f0;
}
#options select:focus,
#options input[type="range"]:focus {
	outline: none;
	border-color: #4cafef;
}
.options-display {
}
#fps-counter {
	position: fixed;
	display: none;
	top: 10px;
	right: 10px;
	background: rgba(0,0,0,0.7);
	color: #0f0;
	font-family: monospace;
	font-size: 14px;
	border-radius: 4px;
	z-index: 9999;
	white-space: pre;
	padding: 5px 10px;
}
