@font-face {
  font-family: 'Carbon';
  src: url('assets/fonts/carbon.woff') format('woff'),
    url('assets/fonts/carbon_v-1.0.woff') format('woff');
}

:root {
  --bg-color: #000000;
  --primary-color: 255, 255, 255;
}

body {
  font-family: 'Carbon', courier, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: #fff;
  text-transform: uppercase;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 2px;
}

h1 {
  font-size: 12px;
  padding: 0;
  margin: 0;
  font-family: 'Carbon', courier, -apple-system, sans-serif;
  font-style: normal;
  font-weight: normal;
  border-bottom: #8d8d8d dashed 1px;
  padding-bottom: 2px;
  padding-top: 0px;
  margin-bottom: 8px;
  color: #8d8d8d;
}

.project-nav {
  width: 100%;
  color: white;
  z-index: 100;
  width: 100%;
  position: relative;
}

.project-body {
  background-color: #000;
}

.project-content {
  padding-top: 56px;
  margin-left: 12px;
  margin-right: 12px;
}

.project-content p:has(> img),
.modal-content p:has(> img) {
  margin: 0;
  margin-bottom: 0.5rem;
  text-indent: 0;
}

.project-content p img,
.modal-content p img {
  display: block;
  width: 100%;
}

.project-content video,
.modal-content video {
  display: block;
  margin-bottom: 0.5rem;
}

.projectpage-buttons {
  border: #000 solid 1px;
  width: 100%;
  color: #000;
  background-color: white;
  font-size: 12px;
}

.projectpage-buttons:hover {
  border: rgba(var(--primary-color)) solid 1px;
  width: 100%;
  color: #000;
  background-color: rgba(var(--primary-color));
  animation: link-animation 0.3s 1 linear;
  animation-iteration-count: infinite;
}

.project-nav-fixed {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding-left: 12px;
  padding-right: 12px;
}

p {
  font-size: 12px;
  padding: 0;
  margin: 0;
  font-family: 'Carbon', courier, -apple-system, sans-serif;
  font-style: normal;
  font-weight: normal;
}

p + p {
  text-indent: 2em;
}

h2 {
  color: rgba(var(--primary-color));
  font-size: 12px;
  padding: 0;
  margin: 0;
  font-family: 'Carbon', courier, -apple-system, sans-serif;
  font-style: normal;
  font-weight: normal;
  /* Paragraph Spacing: 8px; */
}

a {
  color: rgba(var(--primary-color));
  text-decoration: none;
}

/* a:hover {
  animation: link-animation 0.3s 1 linear;
  animation-iteration-count: infinite;
}
 */

.flashing-hover:hover {
  animation: link-animation 0.3s 1 linear;
  animation-iteration-count: infinite;
}

.article {
  /* width: 100%; */
  border-radius: 2px;
  margin-right: 16px;
  opacity: 0;
  cursor: pointer;

  @media only screen and (max-width: 643px) {
    margin-right: 8px;
  }
}

.footer-text-div {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.project-selector:hover {
  animation: none;
  background-color: rgba(var(--primary-color), 0.1) !important;
  opacity: 1;
}

.article:hover {
  animation: none;
}

.project-selector:active {
  animation: none;
  background-color: rgba(var(--primary-color), 0.3);
}

.project-tag {
  color: rgba(var(--primary-color));
}

.project-selector {
  width: 162px;
  border-radius: 2px;
  margin-top: 16px;
  height: 34px;
  position: relative;
  cursor: pointer !important;
}

/* ========================================
   OS INDEX — tree nav + system status
   ======================================== */

.os-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 96px;
  opacity: 0;
  /* fallback: the nav must never stay invisible if GSAP fails to run */
  animation: os-reveal 0.1s linear 2.4s forwards;
}

@keyframes os-reveal {
  to {
    opacity: 1;
  }
}

.index-tree {
  min-width: 220px;
}

.tree-root,
.status-title,
.boost-title {
  color: #8a8a8a;
  font-size: 12px;
  margin-bottom: 4px;
}

.tree-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  box-sizing: border-box;
  padding: 0 0 0 26px;
  font-size: 12px;
  cursor: pointer;
}

.tree-row::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  border-left: 1px solid #333;
}

.tree-row::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  width: 12px;
  border-top: 1px solid #333;
}

.tree-row.is-last::before {
  bottom: 50%;
}

.tree-num {
  color: #555;
}

.tree-sep {
  color: #383838;
}

.tree-name {
  color: #b5b5b5;
  transition: color 0.15s ease;
}

.tree-row:hover .tree-name,
.tree-row.active .tree-name {
  color: #fff;
}

.tree-row:hover .tree-num,
.tree-row.active .tree-num {
  color: #fff;
}

.system-status {
  min-width: 400px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 34px;
  box-sizing: border-box;
  font-size: 12px;
  border-bottom: 1px dashed #222;
}

.status-k {
  color: #8a8a8a;
}

.status-v {
  color: #b5b5b5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-row.is-locked .status-v {
  color: #555;
}

.st-dot {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  flex: none;
  box-sizing: border-box;
}

.st-on {
  background: #b5b5b5;
}

.st-off {
  background: transparent;
  border: 1px solid #444;
}

.st-half {
  background: linear-gradient(to right, #8a8a8a 0 50%, transparent 50% 100%);
  border: 1px solid #555;
}

.boost-line {
  margin-top: 8px;
}

.boost-title {
  opacity: 0;
  animation: os-reveal 0.1s linear 2.4s forwards;
}

/* spec sheets (tab pages) */
.spec {
  margin: 4px 0 14px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px dashed #333;
  font-size: 12px;
}

.spec-k {
  color: #5a5a5a;
  white-space: nowrap;
}

.spec-v {
  color: #d6d6d6;
  text-align: right;
}

.spec-v.is-classified {
  color: #555;
}

.h1-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.h1-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #555;
}

.label.status-chip {
  margin-left: 8px;
  margin-right: 0;
}

.pixel-img {
  display: block;
  width: 100%;
  image-rendering: pixelated;
  border-radius: 4px;
}

.pixel-stage {
  position: relative;
  margin-bottom: 0.5rem;
}

/* static overlay tag — same look as the viewer chips, not interactive */
.pixel-tag {
  position: absolute;
  top: 4px;
  right: 10px;
  padding: 1.5px 4px 1px;
  background: #262626;
  color: #c5c5c5;
  font-size: 12px;
  pointer-events: none;
}

/* scans viewer */
.scan-stage {
  position: relative;
}

.scan-canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  background: #000;
  border-radius: 4px;
}

.scan-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.scan-tools {
  display: flex;
  align-items: center;
  position: relative;
}

.scan-tools[hidden] {
  display: none;
}

/* viewer controls share the nav-tag chip style */
.scan-pfp-btn,
.scan-color-btn,
.scan-switch .scan-btn {
  margin: 0;
  height: auto;
  padding: 1.5px 4px 1px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Carbon', courier, -apple-system, sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.scan-pfp-btn:hover,
.scan-color-btn:hover,
.scan-switch .scan-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* overlay chips sit on the artwork — solid grey so they read on any color */
.scan-pfp-btn,
.scan-data-btn,
.scan-color-btn {
  margin: 0;
  height: auto;
  padding: 1.5px 4px 1px;
  border: none;
  border-radius: 0;
  font-family: 'Carbon', courier, -apple-system, sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #262626;
  color: #c5c5c5;
}

.scan-pfp-btn:hover,
.scan-data-btn:hover,
.scan-color-btn:hover {
  background: #333;
  color: #fff;
}

.scan-data-btn[hidden] {
  display: none;
}

.scan-switch .scan-btn.is-active {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
}

.scan-picker {
  position: absolute;
  right: calc(100% + 8px);
  top: -6px;
  width: 150px;
  padding: 8px;
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
}

.scan-picker[hidden] {
  display: none;
}

.scan-picker-sv {
  position: relative;
  height: 92px;
  border-radius: 1px;
  cursor: crosshair;
  background:
    linear-gradient(to top, #000, rgba(0, 0, 0, 0)),
    linear-gradient(to right, #fff, hsl(0, 100%, 50%));
}

.scan-picker-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.scan-picker-hue {
  position: relative;
  height: 10px;
  border-radius: 1px;
  cursor: crosshair;
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}

.scan-picker-mark {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6px;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.7);
  transform: translateX(-50%);
  pointer-events: none;
}

.scan-picker-hex {
  font-size: 12px;
  color: #8a8a8a;
  text-align: left;
}

.scan-switch {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.project-content .mt-gap,
.modal-content .mt-gap {
  margin-top: 20px;
}

/* counter chip next to the BOOST tag — standard grey label */
.label.boost-counter {
  margin-left: 8px;
  margin-right: 0;
}

/* ========================================
   BOOST FLOW
   ======================================== */

.boost-header-tag {
  padding: 8px 12px;
  font-size: 12px;
  color: #8a8a8a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  text-transform: uppercase;
}

.boost-step[hidden] {
  display: none !important;
}

.boost-input {
  display: block;
  width: 100%;
  height: 38px;
  margin: 16px 0 8px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  color: #d6d6d6;
  font-family: 'Carbon', courier, -apple-system, sans-serif;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-sizing: border-box;
}

.boost-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}

.boost-input::placeholder {
  color: #555;
}

.boost-btn {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  color: #8a8a8a;
  font-family: 'Carbon', courier, -apple-system, sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.boost-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: #e0e0e0;
}

.boost-btn[disabled] {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.boost-btn-arm {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.boost-btn-arm:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.boost-status {
  margin-top: 8px;
  min-height: 15px;
  color: #555;
}

.boost-status.is-error {
  color: #FF0000;
}

.boost-tasks {
  margin: 16px 0;
}

.boost-task {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  color: #8a8a8a;
  font-size: 12px;
  transition: all 0.2s ease;
}

.boost-task-title {
  flex: 1;
}

.boost-task-num {
  color: #555;
}

.boost-task.is-open {
  cursor: pointer;
}

.boost-task.is-open:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #e0e0e0;
}

.boost-task.is-locked {
  opacity: 0.35;
  cursor: default;
}

.boost-task.is-done {
  border-color: rgba(255, 255, 255, 0.3);
  color: #e0e0e0;
}

.boost-task.is-done .boost-task-mark {
  color: #e0e0e0;
}

.boost-count {
  float: right;
  color: #5a5a5a;
}

.boost-note {
  color: #555;
}

.boost-card-preview {
  display: block;
  width: 100%;
  height: auto;
  margin: 16px 0 8px;
  border-radius: 2px;
}

.boost-pfp-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 10px;
}

.boost-chip {
  margin: 0;
  height: auto;
  padding: 1.5px 4px 1px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Carbon', courier, -apple-system, sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.boost-chip:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.boost-chip.is-active {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
}

.boost-picker-wrap {
  position: relative;
  display: inline-flex;
}

.scan-picker.boost-picker {
  right: auto;
  left: 0;
  top: calc(100% + 6px);
}

.boost-actions {
  display: flex;
  gap: 8px;
}

.boost-actions .boost-btn {
  flex: 1;
  padding: 10px 8px;
}

.boost-flow p {
  margin-top: 8px;
}

.article-volt .project-selector path[stroke] {
  stroke: #8a8a8a;
}

.article-volt .selector-icon-top-right path,
.article-volt .selector-dots path {
  fill: #8a8a8a;
}

.article-volt .project-tag {
  color: #8a8a8a;
}

.selector-icon-top-left {
  position: absolute;
  left: 0px;
  top: 0px;
}

.selector-icon-top-right {
  position: absolute;
  right: 0px;
  top: 0px;
}

.selector-icon-bottom-right {
  position: absolute;
  right: 0px;
  bottom: 0px;
}

.selector-icon-bottom-left {
  position: absolute;
  left: 0px;
  bottom: 0px;
}

/* Active state - icons move further out and fade */
.article.active .selector-icon-top-left {
  transform: translate(-8px, -8px) !important;
  opacity: 0 !important;
}

.article.active .selector-icon-top-right {
  transform: translate(8px, -8px) !important;
  opacity: 0 !important;
}

.article.active .selector-icon-bottom-left {
  transform: translate(-8px, 8px) !important;
  opacity: 0 !important;
}

.article.active .selector-icon-bottom-right {
  transform: translate(8px, 8px) !important;
  opacity: 0 !important;
}

.selector-dots {
  position: absolute;
  left: 11px;
  top: 12.5px;
}

.selector-dots-switch {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* When an article is active, make the selector dots white */
.article.active .selector-dots path,
.article.active .selector-dots circle,
.article.active .selector-dots rect {
  fill: #000 !important;
  /* remove stroke so the dots don't appear larger/bolder */
  stroke: none !important;
}

.marginLR {
  margin-left: 16px;
  margin-right: 16px;
}

/* svg {
  padding-bottom: 3px;
}
 */

.list-space {
  padding-bottom: 2px;
}

@keyframes link-animation {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 100;
  }
}

.section-links {
  opacity: 0;
  margin-left: 16px;
  /* position: fixed; */
  padding-top: 48px;
  z-index: 10;
}

.section-links a {
  color: #8a8a8a;
}

.nav-block {
  margin: 16px 16px 0;
  width: fit-content;
}

.labels {
  /* display: inline; */
  display: flex;
  flex-wrap: wrap;
  row-gap: 4px;
  opacity: 0;
}

.hero-logo {
  margin-top: 24px;
  width: 0;
  min-width: 100%;
}

.hero-logo img,
.hero-logo video {
  display: block;
  width: 100%;
  height: auto;
}

.label {
  padding-bottom: 1px;
  padding-left: 4px;
  padding-right: 4px;
  padding-top: 1.5px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  margin-right: 4px;
}

/* Transitions.dev — Number pop-in */

:root {
  --digit-dur: 260ms;
  --digit-distance: 6px;
  --digit-stagger: 50ms;
  --digit-blur: 0px;
  --digit-ease: cubic-bezier(0.34, 1.45, 0.64, 1);
  --digit-dir-x: 0;
  --digit-dir-y: 1;
}

@keyframes t-digit-pop-in {
  0%   {
    transform: translate(
      calc(var(--digit-distance) * var(--digit-dir-x)),
      calc(var(--digit-distance) * var(--digit-dir-y))
    );
    opacity: 0;
    filter: blur(var(--digit-blur));
  }
  100% { transform: translate(0, 0); opacity: 1; filter: blur(0); }
}

.t-digit-group {
  display: inline-flex;
  align-items: baseline;
  overflow: hidden;
}

.t-digit {
  display: inline-block;
  will-change: transform, opacity, filter;
}

/* ticker behavior: only digits that actually changed animate */
.t-digit-group.is-animating .t-digit-changed {
  animation: t-digit-pop-in var(--digit-dur) var(--digit-ease) both;
}

.t-digit-group.is-animating .t-digit[data-stagger="1"] {
  animation-delay: var(--digit-stagger);
}

.t-digit-group.is-animating .t-digit[data-stagger="2"] {
  animation-delay: calc(var(--digit-stagger) * 2);
}

@media (prefers-reduced-motion: reduce) {
  .t-digit-group .t-digit { animation: none !important; }
}

button {
  /* all: unset display: inline-block; */
  text-transform: uppercase;
  border: none;
  padding: 3px 10px;
  margin-right: 12px;
  margin-bottom: 12px;
  height: 34px;
  margin: 0;
  text-decoration: none;
  font-family: 'Carbon', courier, -apple-system, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  padding-right: 30px;
  transition: background 250ms ease-in-out,
    transform 150ms ease;
  -webkit-appearance: none;
  appearance: none;
  -moz-appearance: none;
}

button:active {
  transform: scale(0.99);
}

@media only screen and (max-width: 40em) {
  .footer-text-div {
    display: none;
  }

  .section-links {
    /* margin-left: 16px; */
    padding-top: 8px;
  }

  #links {
    padding-top: 16px;
  }
}

/* ========================================
   PROJECT MODAL OVERLAY
   ======================================== */

#modals-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  pointer-events: none;
}

/* Individual Modal Panel */
.modal-panel {
  position: fixed;
  width: 480px;
  height: 540px;
  background-color: #101010;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* border: 1px solid rgba(var(--primary-color), 0.3); */
  pointer-events: auto;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, width 0.3s ease;
  border-radius: 3px;
}

/* Size variants */
.modal-panel.modal-small {
  width: 360px;
}

.modal-panel.modal-medium {
  width: 480px;
}

.modal-panel.modal-large {
  width: 720px;
}

.modal-panel.active {
  opacity: 1;
  transform: scale(1);
}

/* Modal Header with Close Button */
.modal-header {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 8px 8px;
  background-color: #101010;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

/* Size buttons container */
.modal-size-buttons {
  display: flex;
  gap: 4px;
}

.modal-size-btn {
  padding: 8px 12px;
  font-family: 'Carbon', courier, -apple-system, sans-serif;
  font-size: 12px;
  color: #555;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 36px;
}

.modal-size-btn.active {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: #9a9a9a;
}

.modal-size-btn:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.14);
  background-color: rgba(255, 255, 255, 0.04);
  color: #9a9a9a;
}

/* Drag area in middle */
.modal-drag-area {
  flex: 1;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 2px;
  cursor: move;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Action buttons container */
.modal-action-buttons {
  display: flex;
  gap: 4px;
}

.modal-close-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: 'Carbon', courier, -apple-system, sans-serif;
  font-size: 12px;
  color: #555;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background-color: rgba(255, 255, 255, 0.04);
  color: #9a9a9a;
}

.modal-close-btn svg {
  width: 12px;
  height: 12px;
}

/* Hide button text in small mode - icon only */
.modal-small .modal-close-btn {
  padding: 11px;
  gap: 0;
}

.modal-small .modal-close-btn .button-text {
  display: none;
}

.modal-small .modal-close-btn svg {
  margin: 0;
}

/* Modal Content Area - Scrollable */
.modal-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 24px 16px 64px;
  color: #b5b5b5;
}

/* popup/project text: no prose indent, clean paragraph spacing */
.modal-content p + p,
.project-content p + p {
  text-indent: 0;
  margin-top: 8px;
}

.modal-content h1 {
  color: #5a5a5a;
  border-bottom-color: #333;
}

/* Custom scrollbar for modal content */
.modal-content::-webkit-scrollbar {
  width: 1px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
  margin-right: 0px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Firefox scrollbar */
.modal-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

/* Active Project Card Highlight */
.article.active .project-selector {
  background-color: rgba(var(--primary-color), 1) !important;
  animation: none;
}

/* Prevent body scroll behind the fullscreen mobile modal */
@media (max-width: 60em) {
  body.modal-open {
    overflow: hidden;
  }
}

/* Mobile Responsive — modal becomes a fullscreen takeover */
@media (max-width: 60em) {
  .modal-panel {
    left: 0 !important;
    top: 0 !important;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .modal-drag-area {
    cursor: default;
  }
}

@media (max-width: 40em) {
  .modal-content {
    padding: 16px 20px 48px;
  }

  
  .modal-header {
    padding: 12px 16px;
  }
}

