/* ════════════════════════════════════════════════════════════════════
   1M6 STUDIO™ — ROOT DIRECTORY & ARCHIVE STYLESHEET
   1m6studio.com
   ════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --fg: #000000;
  --blue: #0000ff;
  --red: #ff0000;
  --win-border: #d8d8d8;
  --win-bar-l: #334ea5;
  --win-bar-r: #4c7fc1;
  --mono: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  --sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --header-h: 220px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  overflow-x: hidden;
  background: var(--bg);
}

body {
  margin: 0;
  padding-top: calc(var(--header-h) + 16px);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: #000;
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  display: block;
}

.clearafter::after {
  content: '';
  display: block;
  clear: both;
}

.helvetica {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cursor-pointer { cursor: pointer; }

.blink {
  animation: vg-blink 1.8s infinite;
}
@keyframes vg-blink {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 1; }
}

/* ═══ FIXED 2-COLUMN HEADER (MANIFESTO + A-Z TOC) ═══ */
.vg-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  z-index: 999;
  padding: 12px 16px 10px;
  border-bottom: 1px solid #e5e5e5;
}

.header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.bio {
  font-size: 12.5px;
  line-height: 1.42;
  margin-bottom: 10px;
  max-width: 680px;
}

.seal-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.seal-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.seal-spin {
  width: 44px;
  height: 44px;
  animation: spin-slow 16s linear infinite;
  flex-shrink: 0;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.seal-meta {
  border-left: 2px solid #000;
  padding-left: 8px;
  line-height: 1.3;
}
.seal-meta strong {
  display: block;
  font-family: var(--sans);
  font-size: 11.5px;
}

.toc-col {
  padding-left: 8px;
}

.intro-toc {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.toc {
  column-count: 2;
  column-gap: 24px;
  color: var(--blue);
  font-size: 12.5px;
  line-height: 1.38;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
}

.toc ol li {
  font-family: var(--sans);
  font-weight: 800;
  margin-bottom: 3px;
  break-inside: avoid;
}

.toc ol li a {
  color: var(--blue);
  transition: background-color 0.12s ease, color 0.12s ease;
}

.toc ol li a:hover {
  background: var(--blue);
  color: #ffffff;
}

/* ═══ TOP ACTION PILLS BAR ═══ */
.pills-wrapper {
  padding: 6px 16px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pills-left, .pills-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pill-postmodern {
  border-radius: 999px;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 12px;
  line-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
  background: #fff;
  font-family: var(--mono);
  font-weight: 700;
  transition: all 0.15s ease;
}

.pill-postmodern:hover {
  background: var(--red);
  color: #fff;
}

.pill-blue {
  border-radius: 999px;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-size: 12px;
  line-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
  background: #fff;
  font-family: var(--mono);
  font-weight: 700;
  transition: all 0.15s ease;
}

.pill-blue:hover {
  background: var(--blue);
  color: #fff;
}

.pill-ghost {
  border-radius: 999px;
  border: 1px solid #000;
  color: #000;
  font-size: 11px;
  line-height: 20px;
  padding: 0 10px;
  background: #fff;
  cursor: pointer;
  font-family: var(--mono);
}
.pill-ghost:hover {
  background: #000;
  color: #fff;
}

/* ═══ CENTER HERO STAGE & WORDMARK ═══ */
.hero-stage {
  position: relative;
  padding: 16px 16px 26px;
}

.hero-center {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.wordmark-box {
  border: 2px solid #000;
  padding: 26px 18px 18px;
  margin-bottom: 18px;
  background: #fff;
}

.wordmark-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.wordmark-title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.wordmark-sub {
  margin: 12px auto 0;
  font-size: 12px;
  max-width: 520px;
  color: #222;
}

/* Twin Portal Cards (Choosing YungLit or $LWH) */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  text-align: left;
  margin-bottom: 14px;
}

.portal-card {
  border: 3px solid var(--blue);
  padding: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.portal-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 #000;
}

.portal-card.dark-lwh:hover {
  box-shadow: 5px 5px 0 var(--blue);
}

.portal-tag {
  font-size: 11px;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.portal-head-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.portal-name {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.02;
  margin: 0 0 8px;
}

.portal-head-row .portal-name {
  margin: 0;
}

.portal-logo-badge {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.portal-desc {
  font-size: 12px;
  color: #222;
  margin: 0 0 12px;
}

.portal-go {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 12px;
  padding: 7px 10px;
  background: #000;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
}

.portal-card:hover .portal-go {
  background: var(--blue);
}

.spec-strip {
  border-top: 1px dashed #000;
  border-bottom: 1px dashed #000;
  padding: 8px 0;
  font-size: 11px;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* ═══ WINDOWS 98 FLOATING POPUPS (DRAGGABLE ON DESKTOP) ═══ */
.popup-window {
  width: 245px;
  border: 4px ridge var(--win-border);
  background: #ffffff;
  position: absolute;
  z-index: 60;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.16);
}

#win-yunglit {
  left: 20px;
  top: 26px;
}

#win-lwh {
  right: 20px;
  top: 18px;
  width: 255px;
}

.popup-window.iconize .popup-inner-wrapper {
  display: none;
}

.popup-window.resize {
  width: 340px !important;
  z-index: 80;
}

.windows-header-wrapper {
  padding: 3px 4px;
  background: linear-gradient(90deg, var(--win-bar-l) 0%, var(--win-bar-r) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: move;
  user-select: none;
}

.window-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 2px;
}

.window-icons {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.win-btn {
  width: 16px;
  height: 15px;
  padding: 0;
  border: 1px outset #dad7d2;
  background: #c0c0c0;
  color: #000;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 10px;
  line-height: 12px;
  text-align: center;
  cursor: pointer;
}
.win-btn:active {
  border-style: inset;
}

.popup-inner-wrapper {
  background: #ffffff;
  text-align: left;
}

.inner-title {
  font-size: 11px;
  padding: 5px 8px;
  border-bottom: 1px solid #e5e5e5;
  text-align: center;
}

.win-thumb-wrap {
  display: block;
  background: #f5f5f3;
}
.win-thumb-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.win-lwh-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.win-red-frame {
  padding: 8px;
  background: var(--red);
}

.win-flame-frame {
  padding: 8px;
  background: #141414;
  border-bottom: 2px solid #ff5500;
}

.win-yl-thumb {
  width: 100%;
  aspect-ratio: 4 / 3.8;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.win-yl-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.win-yl-badge img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.win-audio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
  border-top: 1px solid #000;
  background: #f5f5f3;
}

.win-play-btn {
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 7px;
  cursor: pointer;
}
.win-play-btn.playing {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.win-cta-bar {
  display: block;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 7px 8px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.win-cta-bar:hover {
  background: var(--blue);
}

/* ═══ INTRODUCTION BLOCK ═══ */
#introduction {
  text-align: center;
  padding: 32px 16px 22px;
  max-width: 1140px;
  margin: 0 auto;
}

#introduction .section-title {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1;
  margin-bottom: 12px;
}

#introduction .subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.05vw, 28px);
  line-height: 1.38;
  max-width: 860px;
  margin: 0 auto 20px;
}

.how-to-diagram {
  max-width: 860px;
  margin: 0 auto 14px;
  border: 2px solid #000;
  padding: 14px;
  text-align: left;
  background: #fff;
}

.diagram-head {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #000;
  padding-bottom: 6px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.diagram-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.diagram-box {
  border: 1px solid #000;
  padding: 10px;
  font-size: 11.5px;
}

.diagram-box b {
  display: block;
  font-family: var(--sans);
  font-size: 12.5px;
  margin-bottom: 4px;
  color: var(--blue);
}

#introduction .subtitle-2 {
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ═══ NUMBERED CONTENTS 01 -> 04 (3-COLUMN ARCHIVE LAYOUT) ═══ */
#contents {
  max-width: 1380px;
  margin: 0 auto;
  padding: 10px 16px 36px;
}

.anchor-num {
  display: block;
  position: relative;
  top: -20px;
  visibility: hidden;
}

.vg-row {
  padding: 34px 0;
  border-top: 1px solid #e2e2e2;
}

#contents .section-title {
  text-align: center;
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.04;
  margin-bottom: 12px;
  text-transform: uppercase;
}

#contents .sub-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.42;
  max-width: 980px;
  margin: 0 auto 24px;
  text-align: center;
  color: #111;
}

.row-cols {
  display: grid;
  grid-template-columns: 22% 43% 35%;
  align-items: start;
  gap: 0;
}

.number-wrapper {
  padding-top: 12px;
  display: flex;
  justify-content: center;
}

.big-num-stamp {
  width: 150px;
  height: 150px;
  border: 4px solid #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 64px;
  line-height: 0.9;
  position: relative;
  background: #fff;
}

.big-num-stamp small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  margin-top: 6px;
  text-transform: uppercase;
}

.preview-wrapper {
  padding: 0 18px;
}

.blue-box {
  border: 3px solid var(--blue);
  background: #fff;
  overflow: hidden;
}

.blue-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.yl-showcase-split {
  display: grid;
  grid-template-columns: 38% 62%;
  gap: 1px;
  background: #d8d8d8;
}

.yl-kol-panel {
  position: relative;
  background: #32303f;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.yl-kol-panel img {
  width: 100%;
  height: 100%;
  max-height: 430px;
  object-fit: contain;
  display: block;
}

.yl-kol-tag {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 6px;
  text-align: center;
}

@media screen and (max-width: 700px) {
  .yl-showcase-split {
    grid-template-columns: 1fr;
  }
  .yl-kol-panel img {
    max-height: 360px;
  }
}

.mini-archive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #d8d8d8;
}

.mini-archive-cell {
  background: #f5f5f3;
  padding: 8px;
  text-align: center;
  display: block;
}
.mini-archive-cell:hover {
  background: #eaeae5;
}
.mini-archive-cell img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.mini-archive-cell span {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #000;
}

.spec-card-box {
  padding: 18px;
  background: #fafafa;
}
.spec-card-box h4 {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 17px;
  margin: 0 0 10px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 12px;
}
.spec-table td {
  padding: 6px 4px;
  border-bottom: 1px dashed #bbb;
}
.spec-table td:last-child {
  text-align: right;
  font-weight: 700;
}

.preview-caption-bar {
  display: block;
  border-top: 3px solid var(--blue);
  background: var(--blue);
  color: #ffffff;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 12px;
  padding: 9px 12px;
  text-align: center;
  letter-spacing: 0.03em;
}
.preview-caption-bar:hover {
  background: #000;
  border-top-color: #000;
}

.content-wrapper {
  padding: 0 18px;
}

.content-title {
  color: var(--blue);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 8px;
}

.content-wrapper p {
  margin: 0 0 10px;
  font-size: 13px;
}

.content-bullets {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 12.5px;
}
.content-bullets li {
  margin-bottom: 5px;
}

.inline-blue-link {
  color: var(--blue);
  font-family: var(--sans);
  font-weight: 800;
  text-decoration: underline;
  font-size: 12.5px;
}

/* ═══ FOOTER ═══ */
.vg-footer {
  border-top: 2px solid #000;
  padding: 24px 16px 36px;
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: start;
}

.footer-stamp {
  border: 2px solid #000;
  padding: 10px;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 15px;
  line-height: 1.05;
}

.footer-inner {
  font-size: 12.5px;
  line-height: 1.5;
}

.footer-links-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-links-row a {
  color: var(--blue);
  font-family: var(--sans);
  font-weight: 800;
  text-decoration: underline;
}

/* ═══ RESPONSIVE <= 1220px & MOBILE <= 960px ═══ */
@media screen and (max-width: 1260px) {
  .popup-window {
    width: 215px;
  }
  #win-lwh {
    width: 225px;
  }
  .hero-center {
    max-width: calc(100% - 490px);
  }
}

@media screen and (max-width: 1040px) {
  .vg-header {
    position: static;
  }
  body {
    padding-top: 0 !important;
  }
  .header-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .toc {
    column-count: 1;
  }
  .hero-center {
    max-width: 100%;
  }
  .popup-window {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 460px;
    margin: 14px auto 0;
  }
  .portal-grid {
    grid-template-columns: 1fr;
  }
  .diagram-cols {
    grid-template-columns: 1fr;
  }
  .row-cols {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .big-num-stamp {
    width: 110px;
    height: 110px;
    font-size: 46px;
  }
  .preview-wrapper, .content-wrapper {
    padding: 0;
  }
  .vg-footer {
    grid-template-columns: 1fr;
  }
}
