*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream: #f6f1e6;
  --cream2: #ece6d8;
  --cream3: #e0d9c8;
  --ink: #1a1a1a;
  --muted: #6a6a6a;
  --accent: #b8431a;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--cream2);
  font-family: "Pixelify Sans", ui-monospace, monospace;
  color: var(--ink);
  padding: 28px 40px 64px;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Site header ── */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 22px;
}

.site-header a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.site-header a:hover {
  color: var(--ink);
}

.edu-line {
  text-transform: none;
  letter-spacing: normal;
  font-family: inherit;
  font-size: 11px;
  color: var(--muted);
}

.edu-line a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.edu-line a:hover {
  color: var(--ink);
}

/* ── Control bar ── */
.control-bar {
  background: var(--white);
  border: 1.5px solid var(--ink);
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.12);
  padding: 22px 28px 26px;
  margin-bottom: 22px;
}

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

.control-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.control-title {
  font-family: "Pixelify Sans", monospace;
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  margin-top: 4px;
  display: inline-block;
  position: relative;
}

.control-title svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  width: 100%;
  height: 5px;
}

.mode-badge {
  font-size: 11px;
  color: var(--ink);
  border: 1px dashed var(--ink);
  padding: 4px 11px;
  background: var(--cream);
  white-space: nowrap;
}

/* ── Knob track ── */
.track-wrap {
  position: relative;
  height: 110px;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  cursor: pointer;
  user-select: none;
  touch-action: none;
}

.track-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  background: var(--ink);
  transform: translateY(-50%);
}

/* stop marker */
.stop-pin {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.stop-dot {
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: var(--ink);
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 1.5px var(--ink);
}

.stop-icon {
  position: absolute;
  left: 50%;
  top: -36px;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-radius: 0;
  border: 1.5px solid var(--ink);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}

.stop-icon.active {
  display: none;
}

.stop-icon svg {
  transition: stroke 0.25s, fill 0.25s;
}

.stop-label {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a9a9a;
  font-weight: 400;
  white-space: nowrap;
  transition: color 0.2s, font-weight 0.2s;
}

.stop-label.active {
  display: none;
}

.stop-blurb {
  position: absolute;
  left: 50%;
  top: 34px;
  transform: translateX(-50%);
  font-family: "Pixelify Sans", monospace;
  font-size: 14px;
  color: #bcbcbc;
  white-space: nowrap;
  transition: color 0.2s;
}

.stop-blurb.active {
  display: none;
}

/* ── The big knob ── */
.knob {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 0;
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  transition: left 0.3s cubic-bezier(0.4, 1.1, 0.6, 1), box-shadow 0.15s;
  z-index: 6;
}

.knob.dragging {
  cursor: grabbing;
  box-shadow: 6px 6px 0 var(--accent);
  transition: none;
  /* Smooth manual follow */
}

.knob-dot {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 0;
  background: var(--accent);
}

/* ── Knob hint row ── */
.track-hint {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-family: "Pixelify Sans", monospace;
  font-size: 16px;
  color: var(--accent);
}

/* ── Preview panel ── */
.preview {
  background: var(--white);
  border: 1.5px solid var(--ink);
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

/* Preview header */
.preview-header {
  padding: 18px 24px 16px;
  border-bottom: 1.5px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.preview-eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.preview-title {
  font-size: 30px;
  margin: 4px 0 4px;
  line-height: 1;
}

.preview-sub {
  font-size: 12px;
  line-height: 1.4;
  max-width: 480px;
  color: #3a3a3a;
}

.preview-nav {
  display: flex;
  gap: 4px;
  font-size: 11px;
  align-items: center;
}

.preview-nav span {
  padding: 2px 7px;
  border: 1px solid currentColor;
}

/* Filter strip */
.filter-strip {
  padding: 9px 24px;
  border-bottom: 1px dashed var(--ink);
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 10px;
  background: #fbfaf5;
  align-items: center;
}

.filter-strip .fl-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.filter-tag {
  padding: 2px 8px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.filter-tag.active {
  background: var(--ink);
  color: var(--cream);
}

.filter-tag:hover:not(.active) {
  background: var(--cream);
}

.filter-count {
  margin-left: auto;
  color: var(--muted);
}

/* Work grid */
.work-grid {
  padding: 20px;
  display: grid;
  gap: 12px;
}

/* Generic tile */
.tile {
  border: 1.5px solid var(--ink);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}

.tile:hover {
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.tile-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tile-cap {
  background: var(--white);
  border-top: 1px solid var(--ink);
  padding: 5px 8px;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}

.tile-cap .tc-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-cap .tc-mark {
  font-size: 9px;
  flex-shrink: 0;
}

/* Essay tile */
.tile-essay {
  border: 1.5px solid var(--ink);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}

.tile-essay:hover {
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.tile-essay .te-num {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tile-essay .te-title {
  font-size: 21px;
  line-height: 1.1;
  font-style: italic;
}

.tile-essay .te-spacer {
  flex: 1;
}

.tile-essay .te-open {
  font-size: 11px;
  color: #3a3a3a;
  font-style: italic;
}

/* Venture tile */
.tile-venture {
  border: 1.5px solid var(--ink);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}

.tile-venture:hover {
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.tile-venture .tv-year {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tile-venture .tv-name {
  font-size: 20px;
  line-height: 1.1;
}

.tile-venture .tv-spacer {
  flex: 1;
}

.tile-venture .tv-status {
  align-self: flex-start;
  padding: 2px 8px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Stage row */
.stage-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 4px;
  border-bottom: 1px dashed var(--ink);
  gap: 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.stage-row:first-child {
  border-top: 1px dashed var(--ink);
}

.stage-row:hover {
  background: var(--cream);
}

.stage-row .sr-star {
  font-family: "Pixelify Sans", monospace;
  font-size: 21px;
  min-width: 26px;
}

.stage-row .sr-title {
  flex: 1;
  font-family: Georgia, serif;
  font-size: 14px;
  color: var(--ink);
}

.stage-row .sr-num {
  font-size: 10px;
  color: var(--muted);
}

/* Preview footer */
.preview-footer {
  padding: 9px 24px;
  border-top: 1px dashed var(--ink);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: #fbfaf5;
}

/* ── Annotation notes ── */
.notes-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 20px;
  font-family: "Pixelify Sans", monospace;
  font-size: 16px;
  color: var(--accent);
  line-height: 1.25;
}

.notes-row .note-right {
  text-align: right;
}

/* ── Transition ── */
.preview {
  transition: opacity 0.2s;
}

.preview.fade {
  opacity: 0;
}

@media (max-width: 600px) {
  body {
    padding: 16px 16px 48px;
  }

  .notes-row {
    display: none;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .control-bar {
    padding: 16px 16px 18px;
  }

  .control-title {
    font-size: 22px;
  }

  .mode-badge {
    font-size: 10px;
    white-space: normal;
  }

  .track-hint {
    font-size: 12px;
  }

  .stop-label {
    font-size: 9px;
  }

  .stop-blurb {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .control-title {
    font-size: 19px;
  }

  .knob {
    width: 48px;
    height: 48px;
  }

  .stop-icon {
    width: 24px;
    height: 24px;
    top: -30px;
  }

  .stop-blurb {
    display: none;
  }

  .stop-label {
    font-size: 8px;
    letter-spacing: 0.1em;
  }
}

/* ==============================================================
   MODE OVERRIDES
   ============================================================== */

.portal-loader-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  min-height: 500px;
  background: #121213;
  font-family: "Pixelify Sans", sans-serif;
  padding: 40px;
  gap: 40px;
}

/* Left: Scrolling Logs */
.loader-col-left {
  position: relative;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.log-scroll {
  width: 100%;
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: log-scroll-anim 10s linear infinite;
}

.log-list div {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
  text-transform: uppercase;
}

@keyframes log-scroll-anim {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

.highlight-bar {
  position: absolute;
  top: 50%;
  left: -10px;
  right: -10px;
  height: 34px;
  background: #fff;
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0.1;
  /* Subtle for now, can be solid for inversion */
}

/* Center: Big Percent */
.loader-col-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.percent-wrap {
  font-size: 80px;
  color: #fff;
  white-space: nowrap;
}

#loadPercent {
  color: #98fb98;
  min-width: 160px;
  display: inline-block;
  text-align: center;
}

/* Right: Status Info */
.loader-col-right {
  display: flex;
  justify-content: flex-end;
}

.loader-status {
  max-width: 250px;
}

.ls-label {
  font-size: 14px;
  color: #98fb98;
  margin-bottom: 5px;
}

.ls-text {
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
  border-bottom: 2px solid #333;
  padding-bottom: 5px;
}

.ls-sub {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

/* ── Code Mode (Clean Pixel Art Theme) ── */
.mode-code {
  background: #121213 !important;
  color: #e4e4e4;
  font-family: "Pixelify Sans", sans-serif !important;
  transition: all 0.5s ease;
}

.mode-code .control-bar {
  background: #1a1a1b !important;
  border: 1px solid #333 !important;
  box-shadow: 0 4px 0 #000;
}

.mode-code .preview {
  background: #1a1a1b !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.pixel-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
}

.pixel-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  border-bottom: 2px solid #333;
  padding-bottom: 20px;
}

.pixel-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pixel-eyebrow {
  display: block;
  font-size: 14px;
  color: #98fb98;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.pixel-title {
  font-size: 48px;
  line-height: 1;
  color: #fff;
}

.pixel-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 1px solid #98fb98;
  color: #98fb98;
  padding: 10px 20px;
  font-size: 14px;
  text-decoration: none;
  margin-top: 24px;
  transition: all 0.2s ease;
  font-weight: 500;
  letter-spacing: 1px;
}

.pixel-hero-btn:hover {
  background: #98fb98;
  color: #1a1a1b;
  transform: translateY(-2px);
  box-shadow: 0 4px 0 rgba(152, 251, 152, 0.2);
}

.pixel-hero-btn svg {
  flex-shrink: 0;
}

.pixel-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: #666;
}

.pn-item:hover {
  color: #98fb98;
  cursor: pointer;
}

.experience-section {
  margin-bottom: 60px;
}

.exp-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.exp-title {
  font-size: 20px;
  color: #98fb98;
  white-space: nowrap;
}

.exp-line {
  height: 1px;
  background: #333;
  flex: 1;
}

.pixel-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr));
  gap: 30px;
}

.pixel-card {
  background: #212123;
  border: 2px solid #333;
  padding: 24px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pixel-card:hover {
  transform: translateY(-4px);
  border-color: #98fb98;
}

.pc-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}

.pc-name {
  font-size: 24px;
  color: #fff;
}

.pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pc-tag {
  font-size: 12px;
  background: #2a2a2d;
  padding: 2px 8px;
  color: #98fb98;
  border: 1px solid #333;
  white-space: nowrap;
}

.pc-screen {
  background: #000;
  border: 2px solid #333;
  margin: 15px 0 20px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.pc-screen-header {
  background: #333;
  padding: 5px 10px;
  display: flex;
  gap: 5px;
  border-bottom: 1px solid #111;
}

.pc-dot {
  width: 6px;
  height: 6px;
  background: #1a1a1b;
}

.pc-img-wrap {
  height: 200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #1a1a1b 0%, #000 100%);
  position: relative;
}

.pc-img-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 3px, 3px 100%;
  pointer-events: none;
}

.pc-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pc-desc {
  font-size: 16px;
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 20px;
}

.pc-footer {
  display: flex;
  justify-content: flex-end;
}

.pc-button {
  color: #121213;
  background: #98fb98;
  text-decoration: none;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 3px 3px 0 #000;
}

.pc-button:hover {
  background: #fff;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #000;
}

.pixel-ini-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

.pixel-ini-card {
  background: #1a1a1b;
  border-left: 3px solid #98fb98;
  padding: 15px 20px;
}

.pic-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pic-name {
  font-size: 18px;
  color: #fff;
}

.pic-role {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
}

.pic-detail {
  font-size: 14px;
  color: #888;
  line-height: 1.4;
}

.pixel-footer-msg {
  text-align: center;
  color: #444;
  font-size: 12px;
  margin-top: 40px;
}

/* ── Creative Mode (Sketch & Scribble) ── */
.mode-creative {
  background: #fffaf0 !important;
  color: #1a1a1a;
  background-image:
    linear-gradient(to right, #f4e8cf 1px, transparent 1px),
    linear-gradient(to bottom, #f4e8cf 1px, transparent 1px) !important;
  background-size: 20px 20px !important;
}

.mode-creative .control-bar,
.mode-creative .preview {
  background: #FEF8EC !important;
  border: 2px solid #1a1a1a !important;
  box-shadow: 8px 8px 0 rgba(120, 0, 0, 0.1);
}

.mode-creative .control-title {
  color: #780000;
  font-family: "Caveat", cursive;
  font-size: 40px;
}

.mode-creative .control-label {
  color: #C1121F;
  font-family: "VT323", monospace;
  font-size: 14px;
}

.mode-creative .mode-badge {
  background: #C1121F;
  color: white;
  border: none;
  font-family: "Caveat", cursive;
  font-size: 16px;
  border-radius: 5px;
}

.mode-creative .track-wrap {
  background: #f4e8cf !important;
  border: 1.5px solid #1a1a1a !important;
}

.mode-creative .track-line {
  background: #C1121F;
}

.mode-creative .knob {
  background: #780000;
  box-shadow: 4px 4px 0 #C1121F;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  /* Wobbly paint blob shape */
  border: 2px solid #1a1a1a;
  width: 64px;
  height: 64px;
}

.mode-creative .knob-dot {
  background: white;
  width: 6px;
  height: 6px;
}

.mode-creative .site-header a,
.mode-creative .site-header .edu-line {
  color: #780000;
}

.mode-creative .site-header a:hover {
  color: #C1121F;
}

.mode-creative .stop-label {
  font-family: "VT323", monospace;
  color: #780000;
  font-size: 12px;
}

.mode-creative .stop-blurb {
  font-family: "Caveat", cursive;
  color: #C1121F;
  font-size: 16px;
}

.creative-container {
  position: relative;
  padding: 60px 0;
  /* Remove horizontal padding so panels stretch */
  min-height: 600px;
  overflow: hidden;
}

.creative-hero {
  margin-bottom: 60px;
  padding: 0 40px;
  /* Give side padding to hero content only */
  position: relative;
  z-index: 2;
}

.creative-eyebrow {
  display: block;
  font-family: "VT323", monospace;
  font-size: 18px;
  color: #666;
  margin-bottom: 8px;
}

.creative-title {
  font-family: "Caveat", cursive;
  font-size: 54px;
  margin: 0;
  color: #1a1a1a;
}

.creative-sub {
  font-family: "VT323", monospace;
  font-size: 20px;
  color: #888;
  max-width: 500px;
}

.creative-gallery-container {
  padding: 100px 0 100px;
  position: relative;
  z-index: 2;
  overflow-x: auto;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.creative-gallery-container::-webkit-scrollbar {
  display: none;
}

.creative-row {
  margin-bottom: 80px;
  position: relative;
}

.cr-title-wrap {
  padding: 0 80px;
  margin-bottom: -30px;
  position: relative;
  z-index: 5;
}

.cr-title {
  font-family: "Caveat", cursive;
  font-size: 54px;
  color: #1a1a1a;
  background: #fffaf0;
  display: inline-block;
  padding-right: 20px;
  margin: 0;
  line-height: 1;
}

/* Revolving Photos */
.photo-revolver-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.photo-revolver-container {
  overflow: hidden;
  padding: 20px 0;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.photo-revolver {
  display: flex;
  width: max-content;
  animation: revolve 80s linear infinite;
  gap: 20px;
  padding-left: 20px;
}

.revolver-item {
  height: 200px;
  flex-shrink: 0;
  background: #ebebeb;
  /* Skeleton placeholder */
  padding: 5px;
  border: 3px solid #1a1a1a;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
  transform: rotate(var(--r, 0deg));
  overflow: hidden;
}

.revolver-item img {
  height: 100%;
  width: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.revolver-item img.loaded {
  opacity: 1;
}

@keyframes revolve {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ── Blurred Photo Preview ── */
.photo-preview-blurred {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
}

.photo-preview-blurred .photo-revolver-stack {
  filter: blur(8px) brightness(0.85);
  transition: filter 0.4s ease;
  pointer-events: none;
}

.photo-preview-blurred:hover .photo-revolver-stack {
  filter: blur(12px) brightness(0.7);
}

.photo-click-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  pointer-events: none;
}

.photo-click-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}

.photo-preview-blurred:hover .photo-click-icon {
  transform: scale(1.12);
  background: rgba(193, 18, 31, 0.9);
}

.photo-click-text {
  font-family: "Caveat", cursive;
  font-size: 28px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  letter-spacing: 1px;
  transition: transform 0.3s ease;
}

.photo-preview-blurred:hover .photo-click-text {
  transform: translateY(2px);
}

/* ── Photo Gallery Overlay ── */
.photo-gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 26, 0.96);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  overflow-y: auto;
  padding: 40px 20px;
}

.photo-gallery-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.photo-gallery-panel {
  width: 100%;
  max-width: 1200px;
  animation: gallerySlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.photo-gallery-overlay:not(.active) .photo-gallery-panel {
  animation: none;
}

@keyframes gallerySlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.photo-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.photo-gallery-title {
  font-family: "Caveat", cursive;
  font-size: 48px;
  color: #fff;
  margin: 0;
}

.photo-gallery-close {
  background: #C1121F;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  font-family: "VT323", monospace;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
}

.photo-gallery-close:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
}

/* Gallery Grid */
.photo-gallery-grid {
  column-width: 250px;
  column-gap: 16px;
}

.photo-gallery-cell {
  position: relative;
  break-inside: avoid;
  margin-bottom: 16px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.08);
  background: #1a1a1a;
  transition: transform 0.3s ease, border-color 0.3s ease;
  min-height: 200px;
}

.photo-gallery-cell:hover {
  transform: translateY(-4px);
  border-color: #C1121F;
  z-index: 2;
}

/* Skeleton loading */
.photo-gallery-skeleton {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(110deg, #2a2a2a 8%, #3a3a3a 18%, #2a2a2a 33%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.photo-gallery-skeleton.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes skeletonShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.photo-gallery-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: relative;
  z-index: 2;
}

.photo-gallery-img.loaded {
  opacity: 1;
}

@media (max-width: 600px) {
  .photo-gallery-grid {
    column-width: auto;
    column-count: 2;
    column-gap: 8px;
  }

  .photo-gallery-title {
    font-size: 32px;
  }

  .photo-gallery-overlay {
    padding: 20px 10px;
  }

  .photo-click-text {
    font-size: 22px;
  }
}

/* Podcast Grid */
.podcast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 80px;
}

.podcast-card {
  display: block;
  background: #fff;
  border: 3px solid #1a1a1a;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

.podcast-card:hover {
  transform: translate(-5px, -5px);
  box-shadow: 15px 15px 0 #C1121F;
}

.podcast-card img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .podcast-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .podcast-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
}

/* Horizontal Wire per row */
.creative-wire {
  position: absolute;
  top: 122px;
  /* Offset to line up with clips */
  left: -50px;
  right: -50px;
  height: 4px;
  background: #1a1a1a;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.creative-wire::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, #333 0px, #333 2px, transparent 2px, transparent 10px);
  opacity: 0.3;
}

.creative-gallery {
  display: flex;
  gap: 60px;
  padding: 0 80px;
  position: relative;
  z-index: 2;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.creative-card {
  flex-shrink: 0;
  width: 280px;
  height: 380px;
  background: #fff;
  border: 3px solid #1a1a1a;
  border-radius: 4px;
  position: relative;
  padding-top: 10px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.05);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cc-media-wrap {
  flex: 1;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #eee;
}

.cc-media-wrap img,
.cc-media-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cc-cap {
  background: #fff;
  border-top: 2px solid #1a1a1a;
  padding: 8px 12px;
  font-family: "VT323", monospace;
  font-size: 14px;
  color: #1a1a1a;
  text-transform: uppercase;
}

/* The Clip/Tab */
.cc-clip {
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 80px;
  background: #1a1a1a;
  border-radius: 5px 5px 0 0;
  z-index: 3;
}

.cc-clip-hole {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #fffaf0;
  /* Match mode-creative background */
  border-radius: 50%;
  border: 2px solid #333;
}

/* Hide previous inner content styles as they are replaced by media focus */
.cc-inner,
.cc-type-label,
.cc-title,
.cc-list {
  display: none;
}

/* Variations */
.creative-card:nth-child(even) {
  transform: rotate(1deg);
  background: #fafafa;
}

.creative-card:nth-child(odd) {
  transform: rotate(-1.5deg);
  background: #fdfdfd;
}

.creative-card:hover {
  transform: translateY(10px) rotate(0deg) !important;
  box-shadow: 18px 18px 0 rgba(193, 18, 31, 0.08);
}

.creative-card:nth-child(3n) .cc-title {
  color: #003049;
}

.creative-card:nth-child(3n+1) .cc-title {
  color: #C1121F;
}

.creative-card:nth-child(3n+2) .cc-title {
  color: #669BBC;
}

.creative-extra-works {
  padding: 60px 80px;
  font-family: "Caveat", cursive;
  position: relative;
  z-index: 2;
}

.ce-label {
  font-size: 28px;
  color: #666;
  display: block;
  margin-bottom: 15px;
}

.ce-links {
  font-size: 32px;
  color: #1a1a1a;
}

.ce-link {
  color: #C1121F;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
}

.ce-link:hover {
  border-color: #C1121F;
}

/* Entry Animation */
@keyframes cardSlideIn {
  from {
    transform: translateX(100vw);
    opacity: 0;
  }

  to {
    opacity: 1;
    /* final transform handled by nth-child rules + hover */
  }
}

.creative-card.animate-in {
  animation: cardSlideIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Media Player Overlay */
.media-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.media-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.vp-box {
  width: 90%;
  max-width: 1000px;
  background: #fff;
  border: 4px solid #1a1a1a;
  box-shadow: 20px 20px 0 #C1121F;
  position: relative;
  display: flex;
  flex-direction: column;
}

.vp-close {
  position: absolute;
  top: -60px;
  right: -20px;
  background: #C1121F;
  color: #fff;
  border: 2px solid #1a1a1a;
  padding: 8px 16px;
  font-family: "VT323", monospace;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 4px 4px 0 #000;
}

.vp-media-wrap {
  width: 100%;
  height: 70vh;
  /* Set a substantial fixed height for the modal area */
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vp-media-wrap video,
.vp-media-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.vp-bottom-bar {
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 3px solid #1a1a1a;
}

#vpMute {
  background: #fff;
  border: 2px solid #1a1a1a;
  padding: 6px 15px;
  font-family: "VT323", monospace;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 3px 3px 0 #1a1a1a;
}

#vpMute:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #1a1a1a;
}

#vpLabel {
  font-family: "Caveat", cursive;
  font-size: 24px;
  color: #1a1a1a;
}


/* ── Venture Mode (Technical Blueprint) ── */
.mode-venture {
  background: #f0f4f8 !important;
  font-family: "ui-monospace", monospace;
}

.mode-venture .control-bar,
.mode-venture .preview,
.mode-venture .track-wrap {
  border: 2px solid #2a4a8a !important;
  background: #fff !important;
}

.mode-venture .preview-header {
  background: #e1e7f0 !important;
  border-bottom: 2px solid #2a4a8a;
}

.mode-venture .tile-venture {
  border: 2px solid #2a4a8a;
  background: #fff;
  border-radius: 0;
}

.mode-venture .tile-venture:hover {
  background: #f0f4f8;
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 #2a4a8a;
}

/* ── Community Mode (Refined Neo Brutalist) ── */
.mode-community {
  background: #F4F4F1 !important;
  /* Soft Archive White */
  color: #1a1a1a;
  transition: background 0.3s ease;
  font-family: 'Outfit', sans-serif !important;
  background-image:
    radial-gradient(#d1d1d1 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
}

.mode-community .control-bar {
  background: #fff !important;
  border: 3px solid #1a1a1a !important;
  box-shadow: 8px 8px 0 #1a1a1a;
  border-radius: 0 !important;
  padding: 30px;
  margin-bottom: 40px;
}

.mode-community .control-title {
  font-family: 'Outfit', sans-serif !important;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 38px;
  letter-spacing: -1px;
}

.mode-community .control-title svg {
  display: block;
  stroke-width: 2;
  opacity: 0.8;
}

.mode-community .control-bar::before {
  content: "CALIBRATION_UNIT_04_COMMUNITY";
  position: absolute;
  top: 5px;
  right: 15px;
  font-size: 10px;
  color: #1a1a1a;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  opacity: 0.5;
}

.brutal-sub-wrap {
  margin-top: 20px;
  margin-bottom: 40px;
}

.mode-community .mode-badge {
  background: #1a1a1a;
  color: #fff;
  border-radius: 0;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 11px;
  padding: 5px 12px;
}

.mode-community .track-wrap {
  background: #fff !important;
  border: 3px solid #1a1a1a !important;
  border-radius: 0 !important;
  height: 110px;
  margin: 20px 0;
}

.mode-community .track-line {
  background: #1a1a1a;
  height: 2px;
  opacity: 0.3;
}

.mode-community .stop-dot {
  width: 14px;
  height: 14px;
  background: #fff;
  border: 3px solid #1a1a1a;
  box-shadow: none;
  border-radius: 0;
}

.mode-community .stop-icon {
  background: #fff;
  border-radius: 0;
  border: 2px solid #1a1a1a;
  width: 30px;
  height: 30px;
  top: -36px;
  box-shadow: 3px 3px 0 #1a1a1a;
}

.mode-community .stop-label {
  font-weight: 900;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  top: 22px;
  font-size: 10px;
}

.mode-community .stop-blurb {
  font-weight: 400;
  color: #666;
  top: 38px;
  font-size: 12px;
}

.mode-community .knob {
  width: 64px;
  height: 64px;
  border-radius: 0;
  background: #FFD23F;
  /* Muted Golden Yellow */
  border: 3px solid #1a1a1a;
  box-shadow: 6px 6px 0 #1a1a1a;
  z-index: 10;
}

.mode-community .knob-dot {
  width: 6px;
  height: 6px;
  background: #1a1a1a;
  border-radius: 0;
}

.mode-community .track-hint {
  font-weight: 900;
  color: #1a1a1a;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.6;
}

/* Brutal Container Styles */
.brutal-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  font-family: 'Outfit', sans-serif !important;
}

.bh-badge {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  padding: 4px 10px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 20px;
}

.brutal-title {
  font-size: 72px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  margin: 0 0 20px;
  letter-spacing: -3px;
  color: #1a1a1a;
}

.brutal-sub {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #444;
  border-left: 6px solid #FFD23F;
  padding-left: 15px;
  max-width: 550px;
  display: block;
}

.brutal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 60px;
}

.bn-item {
  background: #fff;
  border: 2px solid #1a1a1a;
  padding: 8px 20px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 14px;
  box-shadow: 4px 4px 0 #1a1a1a;
  cursor: pointer;
  transition: all 0.1s;
}

.bn-item:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 #1a1a1a;
  background: #F4F4F1;
}

.brutal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 30px;
}

.bc-card {
  border: 3px solid #1a1a1a;
  box-shadow: 6px 6px 0 #1a1a1a;
  padding: 0;
  position: relative;
  transition: all 0.2s ease;
  background: #fff;
}

.bc-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #1a1a1a;
}

.bc-sticker {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 2px solid #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  z-index: 5;
  box-shadow: 3px 3px 0 #1a1a1a;
}

.bc-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bc-header {
  margin-bottom: 15px;
}

.bc-name {
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 5px;
  letter-spacing: -0.5px;
}

.bc-role {
  display: inline-block;
  background: #f0f0f0;
  color: #1a1a1a;
  padding: 2px 8px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 10px;
  border: 1px solid #1a1a1a;
}

.bc-detail {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 25px;
  flex: 1;
  color: #555;
}

.bc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 2px solid #1a1a1a;
}

.bc-status-blob {
  width: 10px;
  height: 10px;
  background: #1a1a1a;
  border: 1px solid #1a1a1a;
}

.bc-loc {
  font-weight: 900;
  font-size: 10px;
  text-transform: uppercase;
  color: #888;
}

.brutal-footer {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.bf-sticker {
  background: #1a1a1a;
  color: #fff;
  padding: 8px 30px;
  font-weight: 900;
  font-size: 21px;
  text-transform: uppercase;
}

.bf-msg {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  color: #888;
}

@media (max-width: 600px) {
  .brutal-title {
    font-size: 42px;
    letter-spacing: -1px;
  }
}

/* ==============================================================
   UTILITARIAN VENTURE THEME
   ============================================================== */

.mode-venture {
  background: #f2f2f2 !important;
  transition: background 0.4s ease;
}

.mode-venture .control-bar {
  background: #fff !important;
  border: 1px solid #000 !important;
  box-shadow: none;
  padding: 15px 20px;
  position: relative;
  overflow: hidden;
}

.mode-venture .control-bar::before {
  content: "CALIBRATION_UNIT_04";
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 8px;
  color: #ccc;
  font-family: ui-monospace, monospace;
}

.mode-venture .control-label {
  font-family: ui-monospace, monospace;
  color: #000;
  font-weight: bold;
  font-size: 9px;
  text-transform: uppercase;
}

.mode-venture .control-title {
  font-family: ui-monospace, monospace !important;
  text-transform: uppercase;
  font-size: 24px;
  letter-spacing: -0.5px;
}

.mode-venture .control-title svg {
  display: none;
}

.mode-venture .mode-badge {
  background: #000;
  color: #fff;
  border-radius: 0;
  border: none;
  font-family: ui-monospace, monospace;
  font-size: 9px;
  padding: 2px 8px;
}

.mode-venture .track-wrap {
  background: #f0f0f0;
  border: 1px solid #000;
  height: 110px;
  margin: 10px 0;
}

.mode-venture .track-line {
  background: #000;
  height: 1px;
  opacity: 0.2;
}

.mode-venture .stop-dot {
  width: 1px;
  height: 15px;
  background: #000;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.mode-venture .stop-icon {
  background: #fff;
  border-radius: 0;
  border: 1px solid #000;
  width: 30px;
  height: 30px;
  top: -36px;
  box-shadow: 1px 1px 0 #000;
}

.mode-venture .stop-icon.active {
  display: none;
}

.mode-venture .stop-label {
  font-family: ui-monospace, monospace;
  font-size: 9px;
  color: #000;
  font-weight: bold;
  top: 14px;
}

.mode-venture .stop-blurb {
  font-family: ui-monospace, monospace;
  font-size: 8px;
  color: #999;
  top: 26px;
}

.mode-venture .knob {
  width: 64px;
  height: 64px;
  border-radius: 0;
  background: #ffcc00;
  /* Industrial yellow */
  border: 1px solid #000;
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.1s ease;
}

.mode-venture .knob-dot {
  display: none;
}

.mode-venture .track-hint {
  font-family: ui-monospace, monospace;
  color: #888;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 1px;
}

.mode-venture .preview {
  background: #fff !important;
  border: 1px solid #000 !important;
  box-shadow: none;
}

.util-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px;
  color: #1a1a1a;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  position: relative;
}

.util-header {
  border-bottom: 2px solid #000;
  padding-bottom: 30px;
  margin-bottom: 40px;
}

.uh-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 10px;
  color: #666;
}

.util-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.uh-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 12px;
  color: #1a1a1a;
}

.uh-sub {
  max-width: 500px;
  line-height: 1.5;
}

.uh-date {
  background: #000;
  color: #fff;
  padding: 2px 6px;
}

.util-nav {
  display: flex;
  gap: 1px;
  background: #000;
  border: 1px solid #000;
  margin-bottom: 60px;
}

.un-item {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: #fff;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}

.un-item:hover {
  background: #f2f2f2;
}

.util-content {
  display: flex;
  flex-direction: column;
}

.util-item {
  display: flex;
  border: 1px solid #000;
  margin-bottom: 0;
}

.ui-sidebar {
  width: 100px;
  border-right: 1px solid #000;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #f9f9f9;
}

.ui-id {
  font-size: 10px;
  font-weight: bold;
}

.ui-status-tag {
  font-size: 9px;
  padding: 4px;
  border: 1px solid #000;
  text-align: center;
  text-transform: uppercase;
}

.ui-status-tag[data-status="Active"],
.ui-status-tag[data-status="Live"] {
  background: #98fb98;
}

.ui-status-tag[data-status="Acquired"] {
  background: #add8e6;
}

.ui-main {
  flex: 1;
  padding: 30px;
}

.ui-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}

.ui-image-wrap {
  border: 1px solid #000;
}

.ui-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.ui-img--contain {
  object-fit: contain;
  background: #fff;
  padding: 20px;
  box-sizing: border-box;
}

.ui-img-label {
  font-size: 9px;
  border-top: 1px solid #000;
  padding: 5px;
  background: #eee;
  color: #666;
  text-align: center;
}

.ui-info {
  display: flex;
  flex-direction: column;
}

.ui-header {
  margin-bottom: 20px;
}

.ui-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}

.ui-tagline {
  font-size: 11px;
  color: #666;
}

.ui-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 25px;
}

.ui-specs {
  border-top: 1px solid #eee;
  padding-top: 15px;
  margin-bottom: 25px;
}

.ui-spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-bottom: 4px;
  color: #666;
}

.ui-spec-row span:last-child {
  color: #000;
  font-weight: bold;
}

.ui-actions {
  display: flex;
  gap: 15px;
}

.ui-btn {
  flex: 1;
  border: 1px solid #000;
  text-decoration: none;
  color: #000;
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  font-size: 11px;
  font-weight: bold;
  background: #fff;
  transition: background 0.1s;
}

.ui-btn:hover {
  background: #000;
  color: #fff;
}

.ui-divider {
  height: 20px;
  background-image: repeating-linear-gradient(45deg, #ccc, #ccc 5px, transparent 5px, transparent 10px);
  border-left: 1px solid #000;
  border-right: 1px solid #000;
}

.util-footer {
  margin-top: 60px;
  border-top: 2px solid #000;
  padding-top: 20px;
}

.uf-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #666;
  margin-bottom: 15px;
}

.uf-barcode {
  font-size: 24px;
  letter-spacing: -2px;
  color: #1a1a1a;
  text-align: center;
}

@media (max-width: 800px) {
  .ui-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ui-sidebar {
    width: 60px;
  }
}

/* Gallery */
.ui-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 15px 0;
}

.ui-gallery-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  border-radius: 2px;
}

/* ══════════════════════════════════════════════════════════════
   ACHIEVEMENTS SHELF  –  In-page box, always at bottom
   ══════════════════════════════════════════════════════════════ */

/* (scrolling/float keyframes removed — shelf is now static) */

/* ── Outer shelf wrapper – normal flow ── */
.achievements-shelf {
  margin-top: 48px;
  border: 2px solid #1a1a1a;
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.14);
  background: #fff;
  font-family: "Outfit", "Pixelify Sans", sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  overflow: hidden;
}

/* ── Section header bar ── */
.shelf-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  background: #1a1a1a;
  color: #f6f1e6;
  transition: background 0.3s ease, color 0.3s ease;
}

.shelf-header-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  flex: 0 0 auto;
  transition: font-family 0.3s, color 0.3s;
}

.shelf-header-sub {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #9a9a8a;
  font-weight: 400;
  flex: 1;
  transition: color 0.3s;
}

.shelf-toggle {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  color: inherit;
  width: 28px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.shelf-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.shelf-toggle-arrow {
  font-size: 9px;
  line-height: 1;
  transition: transform 0.3s ease;
  display: block;
}

/* ── Shelf body ── */
.shelf-body {
  max-height: 800px;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Track wrapper ── */
.shelf-track-wrap {
  background: linear-gradient(180deg, #fdf8f2 0%, #ede4d0 100%);
  transition: background 0.3s ease;
}

/* ── Static cert grid ── */
.shelf-track {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
}

/* ── Individual Certificate ── */
.shelf-cert {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  flex-shrink: 0;
  width: 152px;
  background: #fffdf7;
  border: 1.5px solid #c8b99a;
  border-radius: 4px 4px 2px 2px;
  box-shadow: 2px 3px 0 #c8b99a, inset 0 0 0 1px rgba(200, 185, 154, 0.3);
  transform: rotate(var(--tilt));
  transform-origin: bottom center;
  cursor: default;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s, border-color 0.3s;
}

.shelf-cert:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.05);
  box-shadow: 4px 10px 0 #a0896a, inset 0 0 0 1px rgba(200, 185, 154, 0.5);
  z-index: 10;
  animation-play-state: paused;
}

/* Top ribbon stripe */
.cert-ribbon {
  height: 6px;
  background: repeating-linear-gradient(90deg, #b8431a 0px, #b8431a 10px, #1a1a1a 10px, #1a1a1a 20px);
  border-radius: 3px 3px 0 0;
  transition: background 0.3s;
}

.cert-inner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px 6px;
  flex: 1;
}

.cert-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.cert-body {
  flex: 1;
  overflow: hidden;
}

.cert-title {
  font-family: "Outfit", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s, font-family 0.3s;
}

.cert-sub {
  font-family: "Outfit", sans-serif;
  font-size: 8.5px;
  color: #6a6a6a;
  margin-top: 2px;
  line-height: 1.3;
  white-space: normal;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.cert-year {
  font-family: "Pixelify Sans", monospace;
  font-size: 8px;
  color: #b8431a;
  margin-top: 4px;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

.cert-seal {
  font-size: 13px;
  color: #c8a96a;
  flex-shrink: 0;
  align-self: flex-end;
  line-height: 1;
  transition: color 0.3s;
}

.cert-bottom-bar {
  height: 4px;
  background: linear-gradient(90deg, #c8b99a, #e8d8b8, #c8b99a);
  border-radius: 0 0 2px 2px;
  transition: background 0.3s;
}

/* ── Wooden shelf plank ── */
.shelf-plank {
  height: 22px;
  position: relative;
}

.shelf-plank-surface {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, #c8a96a 0%, #b89858 20%, #a87a40 40%, #8a6530 70%, #7a5a30 100%),
    repeating-linear-gradient(92deg, transparent 0px, transparent 8px, rgba(0, 0, 0, 0.04) 8px, rgba(0, 0, 0, 0.04) 9px);
  border-top: 2.5px solid #e8c888;
  transition: background-image 0.3s;
}

.shelf-plank-edge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 1;
  background: linear-gradient(90deg, #e8d898 0%, #f0e8a8 20%, #c8a860 50%, #f0e8a8 80%, #d8c888 100%);
}

/* ══════════════════════════════════════════════════════════════
   MODE THEMES FOR ACHIEVEMENTS SHELF
   ══════════════════════════════════════════════════════════════ */

/* ── CREATIVE MODE — sketchbook / warm hand-drawn ── */
.mode-creative .achievements-shelf {
  border: 2px dashed #ff3366;
  box-shadow: 5px 6px 0 rgba(255, 51, 102, 0.18);
}

.mode-creative .shelf-header {
  background: #fff;
  color: #1a1a1a;
  border-bottom: 2px dashed #ff3366;
}

.mode-creative .shelf-header-label {
  font-family: "Caveat", cursive;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #ff3366;
}

.mode-creative .shelf-header-sub {
  color: #6a6a6a;
}

.mode-creative .shelf-toggle {
  border-color: #ff336640;
  color: #ff3366;
}

.mode-creative .shelf-toggle:hover {
  background: #ff336610;
  border-color: #ff3366;
}

.mode-creative .shelf-track-wrap {
  background: linear-gradient(180deg, #fff9f5 0%, #fde8ec 100%);
}

.mode-creative .shelf-track-wrap::before {
  background: linear-gradient(to right, #fff9f5, transparent);
}

.mode-creative .shelf-track-wrap::after {
  background: linear-gradient(to left, #fde8ec, transparent);
}

.mode-creative .shelf-cert {
  background: #fffaf9;
  border-color: #ffbcc8;
  box-shadow: 2px 3px 0 #ffbcc8;
}

.mode-creative .shelf-cert:hover {
  box-shadow: 4px 10px 0 #f08090;
}

.mode-creative .cert-ribbon {
  background: repeating-linear-gradient(90deg, #ff3366 0px, #ff3366 10px, #fff 10px, #fff 20px);
}

.mode-creative .cert-title {
  font-family: "Caveat", cursive;
  font-size: 13px;
  color: #1a1a1a;
}

.mode-creative .cert-year {
  color: #ff3366;
}

.mode-creative .cert-seal {
  color: #ff3366;
}

.mode-creative .cert-bottom-bar {
  background: linear-gradient(90deg, #ffbcc8, #ffdde5, #ffbcc8);
}

/* ── CODE MODE — terminal / pixel ── */
.mode-code .achievements-shelf {
  border: 2px solid #98fb98;
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.4);
  background: #1a1a1b;
}

.mode-code .shelf-header {
  background: #0e0e0f;
  color: #98fb98;
  border-bottom: 1px solid #98fb9840;
}

.mode-code .shelf-header-label {
  font-family: "Pixelify Sans", monospace;
  color: #98fb98;
  letter-spacing: 0.2em;
}

.mode-code .shelf-header-sub {
  color: #3a7a3a;
}

.mode-code .shelf-toggle {
  border-color: #98fb9840;
  color: #98fb98;
}

.mode-code .shelf-toggle:hover {
  background: #98fb9818;
  border-color: #98fb98;
}

.mode-code .shelf-track-wrap {
  background: linear-gradient(180deg, #1a1a1b 0%, #212123 100%);
}

.mode-code .shelf-track-wrap::before {
  background: linear-gradient(to right, #1a1a1b, transparent);
}

.mode-code .shelf-track-wrap::after {
  background: linear-gradient(to left, #212123, transparent);
}

.mode-code .shelf-cert {
  background: #212123;
  border: 1.5px solid #98fb9860;
  box-shadow: 2px 3px 0 #008000;
}

.mode-code .shelf-cert:hover {
  box-shadow: 4px 10px 0 #98fb98;
  border-color: #98fb98;
  background: #252527;
}

.mode-code .cert-ribbon {
  background: repeating-linear-gradient(90deg, #98fb98 0px, #98fb98 10px, #1a1a1b 10px, #1a1a1b 20px);
}

.mode-code .cert-title {
  font-family: "Pixelify Sans", monospace;
  color: #98fb98;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.mode-code .cert-sub {
  color: #4a7a4a;
  font-family: ui-monospace, monospace;
  font-size: 8px;
}

.mode-code .cert-year {
  color: #98fb98;
}

.mode-code .cert-seal {
  color: #98fb9870;
}

.mode-code .cert-bottom-bar {
  background: linear-gradient(90deg, #1a4a1a, #98fb9840, #1a4a1a);
}

/* Pixel grid dot pattern on track */
.mode-code .shelf-track-wrap::before,
.mode-code .shelf-track-wrap::after {
  width: 50px;
}

/* Plank becomes a pixel bar in code mode */
.mode-code .shelf-plank-surface {
  background-image: linear-gradient(180deg, #1a4a1a 0%, #0e2a0e 100%),
    repeating-linear-gradient(90deg, transparent 0px, transparent 8px, rgba(152, 251, 152, 0.08) 8px, rgba(152, 251, 152, 0.08) 9px);
  border-top: 2px solid #98fb98;
}

.mode-code .shelf-plank-edge {
  background: linear-gradient(90deg, #1a4a1a, #98fb9860, #1a4a1a);
}

/* ── VENTURE MODE — utility / clean manifesto ── */
.mode-venture .achievements-shelf {
  border: 2px solid #1a1a1a;
  box-shadow: 5px 5px 0 #1a1a1a;
  background: #f2f2f2;
}

.mode-venture .shelf-header {
  background: #f2f2f2;
  color: #1a1a1a;
  border-bottom: 2px solid #1a1a1a;
}

.mode-venture .shelf-header-label {
  font-family: ui-monospace, monospace;
  color: #1a1a1a;
  letter-spacing: 0.22em;
  font-size: 11px;
}

.mode-venture .shelf-header-sub {
  color: #6a6a6a;
  font-family: ui-monospace, monospace;
  font-size: 9px;
}

.mode-venture .shelf-toggle {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.mode-venture .shelf-toggle:hover {
  background: #1a1a1a20;
}

.mode-venture .shelf-track-wrap {
  background: linear-gradient(180deg, #f8f8f8 0%, #ebebeb 100%);
}

.mode-venture .shelf-track-wrap::before {
  background: linear-gradient(to right, #f8f8f8, transparent);
}

.mode-venture .shelf-track-wrap::after {
  background: linear-gradient(to left, #ebebeb, transparent);
}

.mode-venture .shelf-cert {
  background: #fff;
  border: 1.5px solid #1a1a1a;
  box-shadow: 2px 3px 0 #1a1a1a;
}

.mode-venture .shelf-cert:hover {
  box-shadow: 4px 10px 0 #1a1a1a;
}

.mode-venture .cert-ribbon {
  background: repeating-linear-gradient(90deg, #1a1a1a 0px, #1a1a1a 10px, #d0d0d0 10px, #d0d0d0 20px);
}

.mode-venture .cert-title {
  font-family: ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: #1a1a1a;
}

.mode-venture .cert-sub {
  font-family: ui-monospace, monospace;
  font-size: 7.5px;
  color: #6a6a6a;
}

.mode-venture .cert-year {
  font-family: ui-monospace, monospace;
  color: #1a1a1a;
}

.mode-venture .cert-seal {
  color: #1a1a1a;
}

.mode-venture .cert-bottom-bar {
  background: linear-gradient(90deg, #888, #ccc, #888);
}

.mode-venture .shelf-plank-surface {
  background-image: linear-gradient(180deg, #888 0%, #555 100%),
    repeating-linear-gradient(92deg, transparent 0px, transparent 8px, rgba(0, 0, 0, 0.06) 8px, rgba(0, 0, 0, 0.06) 9px);
  border-top: 2px solid #aaa;
}

.mode-venture .shelf-plank-edge {
  background: linear-gradient(90deg, #aaa, #ddd, #aaa);
}

/* ── COMMUNITY MODE — brutalist yellow ── */
.mode-community .achievements-shelf {
  border: 3px solid #1a1a1a;
  box-shadow: 6px 6px 0 #1a1a1a;
  background: #FFD23F;
}

.mode-community .shelf-header {
  background: #1a1a1a;
  color: #FFD23F;
  border-bottom: 3px solid #FFD23F;
}

.mode-community .shelf-header-label {
  font-family: "Outfit", sans-serif;
  color: #FFD23F;
  font-size: 13px;
  letter-spacing: 0.14em;
}

.mode-community .shelf-header-sub {
  color: #a8900a;
}

.mode-community .shelf-toggle {
  border-color: #FFD23F60;
  color: #FFD23F;
}

.mode-community .shelf-toggle:hover {
  background: #FFD23F20;
  border-color: #FFD23F;
}

.mode-community .shelf-track-wrap {
  background: linear-gradient(180deg, #FFD23F 0%, #e8be30 100%);
}

.mode-community .shelf-track-wrap::before {
  background: linear-gradient(to right, #FFD23F, transparent);
}

.mode-community .shelf-track-wrap::after {
  background: linear-gradient(to left, #e8be30, transparent);
}

.mode-community .shelf-cert {
  background: #fff;
  border: 2.5px solid #1a1a1a;
  box-shadow: 3px 4px 0 #1a1a1a;
}

.mode-community .shelf-cert:hover {
  box-shadow: 5px 12px 0 #1a1a1a;
}

.mode-community .cert-ribbon {
  background: repeating-linear-gradient(90deg, #FFD23F 0px, #FFD23F 10px, #1a1a1a 10px, #1a1a1a 20px);
}

.mode-community .cert-title {
  font-family: "Outfit", sans-serif;
  font-size: 10.5px;
  font-weight: 900;
  color: #1a1a1a;
}

.mode-community .cert-sub {
  font-family: "Outfit", sans-serif;
  font-size: 8px;
  color: #3a3a3a;
}

.mode-community .cert-year {
  color: #1a1a1a;
  font-family: "Outfit", monospace;
}

.mode-community .cert-seal {
  color: #FFD23F;
}

.mode-community .cert-bottom-bar {
  background: linear-gradient(90deg, #FFD23F, #ffe880, #FFD23F);
}

.mode-community .shelf-plank-surface {
  background-image: linear-gradient(180deg, #a07010 0%, #7a5508 100%),
    repeating-linear-gradient(92deg, transparent 0px, transparent 8px, rgba(0, 0, 0, 0.06) 8px, rgba(0, 0, 0, 0.06) 9px);
  border-top: 3px solid #FFD23F;
}

.mode-community .shelf-plank-edge {
  background: linear-gradient(90deg, #FFD23F, #ffe880, #FFD23F);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .shelf-cert {
    width: 128px;
  }

  .shelf-header {
    padding: 10px 14px;
  }

  .shelf-header-sub {
    display: none;
  }

  .cert-title {
    font-size: 9.5px;
  }

  .cert-sub {
    font-size: 8px;
  }
}

/* ══════════════════════════════════════════════════════════════
   DROPDOWN COMPONENTS — Certificates & Achievements / Contact
   ══════════════════════════════════════════════════════════════ */

.global-dropdowns-container {
  width: 100%;
  margin-bottom: 22px;
}

/* ==============================================================
   MOBILE — HERO / HEADER ROW STACKING (all modes)
   ============================================================== */
@media (max-width: 700px) {
  /* code mode: portal loading screen */
  .portal-loader-v2 {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px;
    gap: 20px;
    text-align: center;
  }
  .loader-col-left { height: 100px; }
  .log-list div { font-size: 12px; }

  /* code mode: project card language tags */
  .pc-name { font-size: 20px; }
  .pc-tag { font-size: 11px; }
  .loader-col-right { justify-content: center; }
  .loader-status { max-width: 100%; }
  .percent-wrap { font-size: 44px; }
  #loadPercent { min-width: auto; }

  /* code mode */
  .pixel-container { padding: 40px 16px; }
  .pixel-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .pixel-title { font-size: 32px; }
  .pixel-nav { flex-wrap: wrap; gap: 12px; }

  /* venture mode */
  .util-container { padding: 24px 16px; }
  .util-title { font-size: 28px; }
  .uh-top {
    flex-direction: column;
    gap: 4px;
  }
  .uh-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .uh-sub { max-width: 100%; }
  .util-nav { flex-wrap: wrap; }

  /* community mode */
  .brutal-container { padding: 40px 16px; }

  /* creative mode */
  .cr-title-wrap { padding: 0 16px; }
  .creative-extra-works { padding: 30px 16px; }

  /* media overlay */
  .media-overlay { padding: 16px; }
  .vp-box {
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 8px 8px 0 #C1121F;
  }
  .vp-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    padding: 6px 10px;
    font-size: 14px;
  }
  .vp-media-wrap {
    height: 50vh;
  }
}

@media (max-width: 480px) {
  .pixel-title { font-size: 26px; }
  .util-title { font-size: 24px; }
}

.dropdown-group {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dropdown-component {
  padding: 0 !important;
  margin-bottom: 0 !important;
  transition: all 0.2s ease;
}

.dropdown-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}

.dropdown-bar-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dropdown-bar-arrow {
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
}

.dropdown-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.dropdown-body-inner {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dropdown-body-inner.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.dropdown-cert-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  gap: 15px;
}

.dci-title {
  font-size: 14px;
  font-weight: 600;
}

.dci-sub {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.dropdown-contact-item {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  text-decoration: none;
  color: inherit;
  gap: 4px;
  transition: background 0.2s, transform 0.2s;
}

.dropdown-contact-item:hover {
  transform: translateY(-2px);
}

.dcont-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
}

.dcont-value {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dcont-value-text {
  word-break: break-all;
  padding-right: 12px;
}

/* ══════════════════════════════════════════════════════════════
   DROPDOWN MODE THEMES
   ══════════════════════════════════════════════════════════════ */

/* ── CREATIVE MODE ── */
.mode-creative .dropdown-bar {
  background: transparent;
  border-bottom: 1.5px dashed transparent;
}

.mode-creative .dropdown-component.open .dropdown-bar {
  border-bottom-color: #1a1a1a;
}

.mode-creative .dropdown-bar-label {
  font-family: "Caveat", cursive;
  font-size: 24px;
  text-transform: none;
  color: #1a1a1a;
}

.mode-creative .dropdown-bar-arrow {
  font-family: "Caveat", cursive;
  font-size: 24px;
  color: #ff3366;
}

.mode-creative .dropdown-cert-item,
.mode-creative .dropdown-contact-item {
  border: 1px solid #ffbcc8;
  background: #fff;
}

.mode-creative .dropdown-cert-item:hover,
.mode-creative .dropdown-contact-item:hover {
  border-color: #ff3366;
}

.mode-creative .dci-title,
.mode-creative .dcont-value {
  font-family: "Caveat", cursive;
  font-size: 20px;
  color: #1a1a1a;
}

.mode-creative .dci-sub,
.mode-creative .dcont-label {
  font-family: "VT323", monospace;
  color: #a06070;
  font-size: 14px;
}

.mode-creative .dcont-arrow {
  color: #ff3366;
}

/* ── CODE MODE ── */
.mode-code .dropdown-bar {
  background: #1a1a1b;
  border-bottom: 1px solid transparent;
}

.mode-code .dropdown-component.open .dropdown-bar {
  border-bottom-color: #333;
}

.mode-code .dropdown-bar-label {
  font-family: "Pixelify Sans", monospace;
  color: #98fb98;
  letter-spacing: 0.1em;
}

.mode-code .dropdown-bar-arrow {
  color: #98fb98;
}

.mode-code .dropdown-cert-item,
.mode-code .dropdown-contact-item {
  background: #212123;
  border: 1px solid #333;
}

.mode-code .dropdown-cert-item:hover,
.mode-code .dropdown-contact-item:hover {
  border-color: #98fb98;
}

.mode-code .dci-title {
  font-family: "Pixelify Sans", monospace;
  color: #fff;
}

.mode-code .dci-sub {
  font-family: ui-monospace, monospace;
  color: #666;
  font-size: 10px;
}

.mode-code .dcont-label {
  font-family: ui-monospace, monospace;
  color: #666;
  font-size: 10px;
}

.mode-code .dcont-value {
  font-family: "Pixelify Sans", monospace;
  color: #fff;
}

.mode-code .dcont-arrow {
  color: #98fb98;
}

/* ── VENTURE MODE ── */
.mode-venture .dropdown-bar {
  background: #f9f9f9;
}

.mode-venture .dropdown-component.open .dropdown-bar {
  border-bottom: 1px solid #000;
}

.mode-venture .dropdown-bar-label {
  font-family: ui-monospace, monospace;
  color: #000;
  font-size: 12px;
}

.mode-venture .dropdown-bar-arrow {
  color: #000;
  font-family: ui-monospace, monospace;
}

.mode-venture .dropdown-cert-item,
.mode-venture .dropdown-contact-item {
  border: 1px solid #eee;
  background: #fff;
}

.mode-venture .dropdown-cert-item:hover,
.mode-venture .dropdown-contact-item:hover {
  border-color: #000;
}

.mode-venture .dci-title,
.mode-venture .dcont-value {
  font-family: ui-monospace, monospace;
  color: #000;
  font-size: 12px;
}

.mode-venture .dci-sub,
.mode-venture .dcont-label {
  font-family: ui-monospace, monospace;
  color: #666;
  font-size: 10px;
}

/* ── COMMUNITY MODE ── */
.mode-community .dropdown-bar {
  background: #FFD23F;
  border-bottom: 3px solid transparent;
}

.mode-community .dropdown-component.open .dropdown-bar {
  border-bottom-color: #1a1a1a;
}

.mode-community .dropdown-bar-label {
  font-family: "Outfit", sans-serif;
  color: #1a1a1a;
  font-weight: 900;
  font-size: 18px;
}

.mode-community .dropdown-bar-arrow {
  color: #1a1a1a;
  font-weight: 900;
}

.mode-community .dropdown-cert-item,
.mode-community .dropdown-contact-item {
  border: 2px solid #1a1a1a;
  background: #fff;
}

.mode-community .dropdown-cert-item:hover,
.mode-community .dropdown-contact-item:hover {
  background: #f4f4f1;
}

.mode-community .dci-title,
.mode-community .dcont-value {
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  color: #1a1a1a;
  text-transform: uppercase;
}

.mode-community .dci-sub,
.mode-community .dcont-label {
  font-family: "Outfit", sans-serif;
  color: #555;
  font-weight: 600;
}

/* ── Dropdown Responsive ── */
@media (max-width: 600px) {
  .dropdown-bar {
    padding: 12px 16px;
  }

  .dropdown-bar-label {
    font-size: 12px;
  }

  .dropdown-body-inner {
    padding: 14px 16px;
    gap: 10px;
  }

  .dropdown-cert-item,
  .dropdown-contact-item {
    flex: 1 1 100%;
    min-width: unset;
  }
}