/* Moon Design Mode — alternate presentation layer. Sun keeps the current portfolio unchanged. */
.moon-only { display: none !important; }

html[data-style="moon"] {
  --moon-bg: #020711;
  --moon-panel: rgba(10, 18, 31, .92);
  --moon-panel-soft: rgba(10, 20, 35, .74);
  --moon-line: rgba(85, 145, 211, .20);
  --moon-line-hot: rgba(74, 169, 255, .62);
  --moon-blue: #63a8ff;
  --moon-cyan: #56d9ff;
  --moon-text: #f4f8ff;
  --moon-muted: #8298b3;
}

html[data-style="moon"] .moon-only { display: block !important; }
html[data-style="moon"] body {
  background:
    radial-gradient(circle at 78% 18%, rgba(48, 110, 192, .08), transparent 22%),
    radial-gradient(circle at 18% 78%, rgba(12, 125, 178, .06), transparent 26%),
    linear-gradient(180deg, #020711 0%, #020813 42%, #01050c 100%) !important;
}

html[data-style="moon"] body::before {
  opacity: .24 !important;
  background-image:
    linear-gradient(rgba(51, 115, 180, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 115, 180, .045) 1px, transparent 1px),
    radial-gradient(circle, rgba(96, 178, 255, .28) 1px, transparent 1.5px);
  background-size: 54px 54px, 54px 54px, 120px 120px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.72) 78%, transparent 100%);
}

html[data-style="moon"] main {
  display: flex;
  flex-direction: column;
}

html[data-style="moon"] #home { order: 1; }
html[data-style="moon"] #about { order: 2; }
html[data-style="moon"] #experience { order: 3; }
html[data-style="moon"] #education { order: 4; }
html[data-style="moon"] #capabilities { order: 5; }
html[data-style="moon"] #projects { order: 6; }
html[data-style="moon"] #proof { order: 7; }
html[data-style="moon"] #credentials { order: 8; }
html[data-style="moon"] #contact { order: 9; }

html[data-style="moon"] .sidebar {
  border-color: rgba(77, 142, 203, .24) !important;
  background: rgba(2, 7, 14, .96) !important;
  box-shadow: 18px 0 55px rgba(0,0,0,.22);
}

html[data-style="moon"] .sidebar-inner {
  padding-top: 18px;
}

html[data-style="moon"] .side-nav {
  display: grid;
}

html[data-style="moon"] .side-nav-link[data-section="home"] { order: 1; }
html[data-style="moon"] .side-nav-link[data-section="about"] { order: 2; }
html[data-style="moon"] .side-nav-link[data-section="experience"] { order: 3; }
html[data-style="moon"] .side-nav-link[data-section="education"] { order: 4; }
html[data-style="moon"] .side-nav-link[data-section="capabilities"] { order: 5; }
html[data-style="moon"] .side-nav-link[data-section="projects"] { order: 6; }
html[data-style="moon"] .side-nav-link[data-section="proof"] { order: 7; }
html[data-style="moon"] .side-nav-link[data-section="credentials"] { order: 8; }
html[data-style="moon"] .side-nav-link[data-section="contact"] { order: 9; }

html[data-style="moon"] .side-nav-link {
  border-radius: 9px;
  color: #8ea3bd;
}

html[data-style="moon"] .side-nav-link.active {
  color: #eef8ff;
  border-color: rgba(80, 160, 255, .58);
  background: linear-gradient(90deg, rgba(34, 101, 177, .38), rgba(5, 14, 25, .82)) !important;
  box-shadow: inset 3px 0 0 #4da5ff, 0 0 22px rgba(45, 135, 255, .10);
}

html[data-style="moon"] .appearance-panel > span {
  color: #6b89aa;
}

html[data-style="moon"] .appearance-switch button {
  background: rgba(8, 15, 26, .92) !important;
  border-color: rgba(77, 127, 183, .26);
}

html[data-style="moon"] .appearance-switch button.active {
  color: #eff7ff;
  border-color: #4f9cff;
  background: linear-gradient(180deg, rgba(44, 101, 179, .35), rgba(9, 19, 33, .94)) !important;
  box-shadow: 0 0 18px rgba(65, 146, 255, .17);
}

html[data-style="moon"] .home {
  min-height: 100vh !important;
  height: auto !important;
  padding-bottom: 36px;
}

html[data-style="moon"] .command-wrap {
  max-width: 1440px;
  padding-top: 24px;
}

html[data-style="moon"] .hero-grid {
  min-height: 560px !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr) !important;
  grid-template-areas: "copy profile" !important;
  gap: 44px !important;
  align-items: center !important;
  padding: 44px 54px 28px !important;
  border: 1px solid rgba(75, 137, 201, .18);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(5, 13, 24, .86), rgba(3, 9, 17, .58));
  box-shadow: 0 26px 70px rgba(0,0,0,.25);
}

html[data-style="moon"] .hero-copy { grid-area: copy; }
html[data-style="moon"] .profile-zone { grid-area: profile; }
html[data-style="moon"] .featured-card { display: none !important; }

html[data-style="moon"] .hero-copy {
  position: relative !important;
  padding: 0 !important;
  min-height: 0 !important;
}

html[data-style="moon"] .hero-copy::before {
  display: none !important;
}

html[data-style="moon"] .hero-copy h1 {
  margin-top: 18px !important;
  font-size: clamp(58px, 5.7vw, 86px) !important;
  line-height: .88 !important;
  letter-spacing: -.055em !important;
}

html[data-style="moon"] .hero-copy h1 span {
  color: #f5f8ff !important;
}

html[data-style="moon"] .hero-copy h1 strong {
  color: #67a9ff !important;
  text-shadow: 0 0 24px rgba(70, 146, 255, .16);
}

html[data-style="moon"] .hero-role {
  color: #72d8ff !important;
  letter-spacing: .16em !important;
}

html[data-style="moon"] .hero-motto {
  margin-top: 16px !important;
  color: #c5d4e8 !important;
}

html[data-style="moon"] .hero-summary {
  max-width: 650px !important;
  margin-top: 10px !important;
  color: #9fb3c9 !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

html[data-style="moon"] .hero-actions {
  margin-top: 22px !important;
}

html[data-style="moon"] .hero-skill-chips {
  margin-top: 18px !important;
}

html[data-style="moon"] .hero-skill-chips span {
  border-color: rgba(88, 143, 203, .25) !important;
  background: rgba(7, 16, 28, .88) !important;
  color: #8ea6bf !important;
}

html[data-style="moon"] .profile-zone {
  min-height: 460px !important;
  overflow: visible !important;
}

html[data-style="moon"] .profile-zone > img {
  width: min(100%, 430px) !important;
  height: auto !important;
  max-height: 520px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 28px 48px rgba(0,0,0,.42));
}

html[data-style="moon"] .profile-bg {
  opacity: .78;
  transform: scale(.90);
}

html[data-style="moon"] .metric-strip {
  margin-top: 18px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  border-color: rgba(74, 137, 200, .18) !important;
  background: linear-gradient(145deg, rgba(8, 16, 29, .92), rgba(3, 9, 17, .92)) !important;
}

html[data-style="moon"] .metric-strip article:nth-child(n+5) {
  display: none !important;
}

html[data-style="moon"] .metric-strip article {
  min-height: 88px;
  padding: 14px 18px !important;
}

html[data-style="moon"] .metric-strip b {
  color: #69adff !important;
}

html[data-style="moon"] .tech-stack-native,
html[data-style="moon"] .home-section-heading,
html[data-style="moon"] .home-project-grid,
html[data-style="moon"] .home-bottom-grid,
html[data-style="moon"] .home-quote {
  display: none !important;
}

html[data-style="moon"] .status-pill {
  border-color: rgba(73, 172, 255, .38) !important;
  background: rgba(7, 19, 31, .72) !important;
}

html[data-style="moon"] .full-section {
  min-height: auto !important;
  padding: 84px 0 !important;
  background: transparent !important;
}

html[data-style="moon"] .page-shell {
  width: min(1180px, calc(100% - 56px)) !important;
}

html[data-style="moon"] .section-heading,
html[data-style="moon"] .moon-section-heading {
  max-width: 980px !important;
  margin-bottom: 34px;
}

html[data-style="moon"] .section-heading .eyebrow,
html[data-style="moon"] .moon-section-heading .eyebrow {
  color: #6c8dac !important;
  letter-spacing: .16em !important;
}

html[data-style="moon"] .section-heading h2,
html[data-style="moon"] .moon-section-heading h2,
html[data-style="moon"] .about-layout h2,
html[data-style="moon"] .contact-layout h2 {
  color: #f4f8ff !important;
  font-size: clamp(40px, 4.2vw, 58px) !important;
  line-height: .98 !important;
  letter-spacing: -.045em !important;
}

html[data-style="moon"] .section-heading p,
html[data-style="moon"] .moon-section-heading p {
  max-width: 820px;
  color: #7f95af !important;
  line-height: 1.65 !important;
}

html[data-style="moon"] .v213-about .about-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr) !important;
  gap: 56px !important;
  align-items: start !important;
}

html[data-style="moon"] .v228-about-copy {
  max-width: 720px;
}

html[data-style="moon"] .v228-about-copy > p {
  max-width: 680px;
  color: #95a9bf !important;
  font-size: 15px !important;
  line-height: 1.72 !important;
}

html[data-style="moon"] .moon-about-facts {
  display: grid !important;
  gap: 10px;
  margin-top: 24px;
}

html[data-style="moon"] .moon-about-facts span {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(72, 138, 203, .19);
  border-radius: 9px;
  background: rgba(7, 16, 28, .72);
  color: #92a9c1;
}

html[data-style="moon"] .moon-about-facts b {
  font-size: 12px;
  font-weight: 600;
}

html[data-style="moon"] .v228-about-values {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

html[data-style="moon"] .v228-about-values article {
  min-height: 170px !important;
  padding: 20px !important;
  border: 1px solid rgba(76, 139, 201, .20) !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, rgba(10, 19, 33, .92), rgba(5, 12, 22, .94)) !important;
  box-shadow: none !important;
}

html[data-style="moon"] .v228-about-values article > b {
  color: #5ba4ff !important;
}

html[data-style="moon"] .v228-about-values h3 {
  color: #f0f5fb !important;
}

html[data-style="moon"] .v228-about-values p {
  color: #8196ae !important;
}

html[data-style="moon"] .v213-experience .experience-v2 {
  grid-template-columns: 156px minmax(0, 1fr) !important;
  gap: 28px !important;
  padding: 28px 30px !important;
  border: 1px solid rgba(76, 139, 201, .20) !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, rgba(9, 18, 31, .92), rgba(4, 11, 20, .96)) !important;
  box-shadow: none !important;
}

html[data-style="moon"] .v213-experience .experience-v2 aside {
  display: none !important;
}

html[data-style="moon"] .experience-date {
  position: relative;
  min-height: 100%;
  align-items: flex-start !important;
  padding-top: 4px;
}

html[data-style="moon"] .experience-date span {
  width: 2px !important;
  min-height: 220px;
  background: linear-gradient(#58a8ff, rgba(88,168,255,.08)) !important;
  box-shadow: 0 0 16px rgba(75,151,255,.28) !important;
}

html[data-style="moon"] .experience-date strong {
  color: #6aaeff !important;
  font-size: 11px !important;
  letter-spacing: .08em;
}

html[data-style="moon"] .experience-title {
  align-items: flex-start !important;
}

html[data-style="moon"] .experience-title h3 {
  color: #f2f6fc !important;
}

html[data-style="moon"] .experience-summary {
  color: #90a5bc !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

html[data-style="moon"] .experience-groups {
  margin-top: 18px !important;
  display: grid !important;
  gap: 8px !important;
}

html[data-style="moon"] .experience-groups article {
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: 10px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(76, 139, 201, .12) !important;
  background: transparent !important;
}

html[data-style="moon"] .experience-groups article > b {
  color: #5ca4ff !important;
}

html[data-style="moon"] .experience-groups h4 {
  color: #dce8f6 !important;
}

html[data-style="moon"] .experience-groups p {
  color: #7f94ac !important;
  line-height: 1.5 !important;
}

html[data-style="moon"] .experience-open {
  margin-top: 20px !important;
}

html[data-style="moon"] .moon-education {
  display: block !important;
}

html[data-style="moon"] .moon-section-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

html[data-style="moon"] .moon-section-index {
  padding-top: 9px;
  color: #5ba4ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

html[data-style="moon"] .moon-education-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding-left: 28px;
}

html[data-style="moon"] .moon-education-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(#5ba4ff, rgba(91,164,255,.08));
}

html[data-style="moon"] .moon-education-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid rgba(76, 139, 201, .20);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(10, 19, 33, .92), rgba(5, 12, 22, .95));
}

html[data-style="moon"] .moon-timeline-dot {
  position: absolute;
  left: -27px;
  top: 28px;
  width: 10px;
  height: 10px;
  border: 2px solid #5ba4ff;
  border-radius: 50%;
  background: #020711;
  box-shadow: 0 0 14px rgba(91,164,255,.42);
}

html[data-style="moon"] .moon-education-year {
  color: #68abff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

html[data-style="moon"] .moon-education-copy h3 {
  color: #f2f6fc;
  font-size: 20px;
  line-height: 1.15;
}

html[data-style="moon"] .moon-education-copy strong {
  display: block;
  margin-top: 6px;
  color: #6eacf8;
  font-size: 13px;
}

html[data-style="moon"] .moon-education-copy p {
  margin-top: 8px;
  color: #8499b0;
  font-size: 13px;
  line-height: 1.55;
}

html[data-style="moon"] .v213-capabilities .capability-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-top: 24px !important;
}

html[data-style="moon"] .v213-capabilities .capability-grid article {
  min-height: 168px !important;
  padding: 20px !important;
  border: 1px solid rgba(77, 140, 202, .18) !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, rgba(10, 19, 33, .92), rgba(5, 12, 22, .95)) !important;
  box-shadow: none !important;
}

html[data-style="moon"] .v213-capabilities .capability-grid article::after {
  opacity: .15 !important;
}

html[data-style="moon"] .v213-capabilities .capability-grid h3 {
  color: #eef5fd !important;
  font-size: 16px !important;
}

html[data-style="moon"] .v213-capabilities .capability-grid p {
  color: #8298b0 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

html[data-style="moon"] .v213-capabilities .cap-icon {
  width: 46px !important;
  height: 46px !important;
  border-radius: 10px !important;
  background: rgba(7, 16, 28, .82) !important;
  box-shadow: 0 0 18px color-mix(in srgb, currentColor 12%, transparent) !important;
}

html[data-style="moon"] .v213-projects .projects-decor-server {
  display: none !important;
}

html[data-style="moon"] .moon-project-filters {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

html[data-style="moon"] .moon-project-filters button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(78, 137, 196, .22);
  border-radius: 999px;
  background: rgba(7, 16, 28, .78);
  color: #8095ad;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

html[data-style="moon"] .moon-project-filters button:hover,
html[data-style="moon"] .moon-project-filters button.active {
  color: #f4f8ff;
  border-color: rgba(87, 160, 255, .72);
  background: linear-gradient(180deg, rgba(45, 104, 181, .34), rgba(8, 18, 31, .94));
  box-shadow: 0 0 18px rgba(73, 146, 255, .12);
}

html[data-style="moon"] .v213-projects .project-detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-top: 0 !important;
}

html[data-style="moon"] .v213-projects .project-detail-grid article {
  min-height: 354px !important;
  display: flex !important;
  flex-direction: column;
  padding: 10px !important;
  border: 1px solid rgba(77, 140, 202, .18) !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, rgba(10, 19, 33, .94), rgba(5, 12, 22, .97)) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

html[data-style="moon"] .v213-projects .project-detail-grid article[hidden] {
  display: none !important;
}

html[data-style="moon"] .v213-projects .project-detail-grid article > span:first-child {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(91, 164, 255, .42);
  border-radius: 8px;
  background: rgba(4, 13, 24, .86);
  color: #77b5ff;
  font-size: 10px;
  font-weight: 900;
}

html[data-style="moon"] .v213-projects .project-detail-art {
  position: static !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  margin: 0 0 14px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(88, 153, 222, .20);
  background: #04101d;
  filter: none !important;
  transform: none !important;
}

html[data-style="moon"] .v213-projects .project-detail-grid h3 {
  max-width: 100% !important;
  margin: 0 !important;
  color: #eef5fd !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
}

html[data-style="moon"] .v213-projects .project-detail-grid p {
  min-height: 72px !important;
  margin-top: 8px !important;
  color: #7f95ad !important;
  font-size: 10.5px !important;
  line-height: 1.45 !important;
}

html[data-style="moon"] .v213-projects .project-detail-metrics {
  margin-top: auto !important;
  padding-top: 10px;
  border-top: 1px solid rgba(76, 138, 199, .12);
}

html[data-style="moon"] .v213-projects .project-detail-metrics b {
  color: #dbe9f7 !important;
}

html[data-style="moon"] .v213-projects .project-detail-metrics .detail-metric-value {
  color: #f0f6ff !important;
  font-size: 10px !important;
}

html[data-style="moon"] .v213-projects .project-detail-metrics .detail-metric-label {
  color: #6f859e !important;
  font-size: 7px !important;
}

html[data-style="moon"] .v213-projects .card-cta {
  margin-top: 10px !important;
  min-height: 30px !important;
  border-color: rgba(83, 153, 234, .30) !important;
  background: rgba(5, 14, 25, .72);
  color: #9fb8d2 !important;
}

html[data-style="moon"] .v213-proof .proof-grid,
html[data-style="moon"] .v213-credentials .credential-grid {
  gap: 14px !important;
}

html[data-style="moon"] .v213-proof .proof-grid article,
html[data-style="moon"] .v213-credentials .credential-grid article {
  border: 1px solid rgba(77, 140, 202, .18) !important;
  background: linear-gradient(145deg, rgba(10, 19, 33, .92), rgba(5, 12, 22, .96)) !important;
  box-shadow: none !important;
}

html[data-style="moon"] .v213-proof .engineering-loop {
  border-color: rgba(77, 140, 202, .18) !important;
  background: rgba(6, 15, 27, .80) !important;
}

html[data-style="moon"] .v213-credentials .credential-grid article::after {
  opacity: .035 !important;
}

html[data-style="moon"] .v213-contact .contact-layout {
  grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr) !important;
  gap: 54px !important;
  align-items: center !important;
}

html[data-style="moon"] .v224-contact-copy {
  max-width: 560px;
}

html[data-style="moon"] .v224-contact-copy > p {
  color: #8499b0 !important;
  line-height: 1.65 !important;
}

html[data-style="moon"] .v224-contact-list {
  gap: 9px !important;
}

html[data-style="moon"] .v224-contact-row {
  min-height: 58px !important;
  border: 1px solid rgba(77, 140, 202, .18) !important;
  border-radius: 10px !important;
  background: rgba(8, 17, 30, .82) !important;
  box-shadow: none !important;
}

html[data-style="moon"] .v224-contact-row:hover {
  border-color: rgba(91, 164, 255, .52) !important;
  background: rgba(9, 22, 38, .92) !important;
}

html[data-style="moon"] .v224-contact-label {
  color: #6f879f !important;
}

html[data-style="moon"] .v224-contact-row strong {
  color: #dce8f6 !important;
}

html[data-style="moon"] .v224-send-cta {
  margin-top: 24px !important;
  background: linear-gradient(90deg, #357dea, #5c9dff) !important;
  color: white !important;
  box-shadow: 0 12px 30px rgba(45, 116, 226, .22) !important;
}

@media (max-width: 1100px) {
  html[data-style="moon"] .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr) !important;
    gap: 26px !important;
    padding: 34px 32px 24px !important;
  }

  html[data-style="moon"] .v213-capabilities .capability-grid,
  html[data-style="moon"] .v213-projects .project-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html[data-style="moon"] .v213-about .about-layout,
  html[data-style="moon"] .v213-contact .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 760px) {
  html[data-style="moon"] .page-shell {
    width: min(100% - 28px, 680px) !important;
  }

  html[data-style="moon"] .full-section {
    padding: 56px 0 !important;
  }

  html[data-style="moon"] .hero-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas: "copy" "profile" !important;
    min-height: 0 !important;
    padding: 28px 20px 20px !important;
  }

  html[data-style="moon"] .hero-copy h1 {
    font-size: clamp(46px, 15vw, 68px) !important;
  }

  html[data-style="moon"] .profile-zone {
    min-height: 330px !important;
  }

  html[data-style="moon"] .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  html[data-style="moon"] .v213-capabilities .capability-grid,
  html[data-style="moon"] .v213-projects .project-detail-grid,
  html[data-style="moon"] .v228-about-values {
    grid-template-columns: 1fr !important;
  }

  html[data-style="moon"] .v213-experience .experience-v2 {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 22px 18px !important;
  }

  html[data-style="moon"] .experience-date {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center !important;
    gap: 10px;
  }

  html[data-style="moon"] .experience-date span {
    min-height: 2px !important;
    height: 2px !important;
    width: 100% !important;
  }

  html[data-style="moon"] .moon-education-timeline article {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  html[data-style="moon"] .moon-section-heading {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  html[data-style="moon"] .moon-section-index {
    padding-top: 0;
  }

  html[data-style="moon"] .moon-project-filters {
    gap: 6px;
  }
}

/* Project Detail — Moon mode */
html[data-style="moon"] body.project-page {
  background:
    radial-gradient(circle at 78% 14%, rgba(52, 111, 190, .08), transparent 24%),
    linear-gradient(180deg, #020711 0%, #01050c 100%) !important;
}

html[data-style="moon"] .project-page-shell {
  width: min(1180px, calc(100% - 48px)) !important;
  padding-top: 20px !important;
  padding-bottom: 52px !important;
}

html[data-style="moon"] .project-page-header {
  min-height: 64px !important;
  padding: 0 4px !important;
  border-bottom: 1px solid rgba(75, 137, 198, .13);
  background: transparent !important;
}

html[data-style="moon"] .project-brand strong {
  color: #edf5ff !important;
}

html[data-style="moon"] .project-brand small,
html[data-style="moon"] .project-back-link {
  color: #7991ab !important;
}

html[data-style="moon"] .project-language-switch {
  border-color: rgba(81, 145, 204, .24) !important;
  background: rgba(7, 15, 27, .80) !important;
}

html[data-style="moon"] .project-detail-content {
  margin-top: 24px !important;
  border: 1px solid rgba(77, 140, 202, .18) !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, rgba(8, 17, 30, .94), rgba(3, 10, 18, .98)) !important;
  box-shadow: 0 28px 70px rgba(0,0,0,.28) !important;
}

html[data-style="moon"] .project-detail-hero {
  grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr) !important;
  gap: 34px !important;
  padding: 34px 38px 28px !important;
  background: transparent !important;
}

html[data-style="moon"] .project-detail-number {
  border-color: rgba(91, 164, 255, .46) !important;
  background: rgba(6, 17, 30, .82) !important;
  color: #72b2ff !important;
}

html[data-style="moon"] .project-detail-eyebrow {
  color: #6c8daa !important;
}

html[data-style="moon"] .project-detail-hero h1 {
  color: #f4f8ff !important;
  font-size: clamp(34px, 3.7vw, 50px) !important;
  line-height: 1.00 !important;
}

html[data-style="moon"] .project-detail-summary {
  color: #8ca1b8 !important;
  line-height: 1.58 !important;
}

html[data-style="moon"] .project-primary-action {
  background: linear-gradient(90deg, #357dea, #5b9cff) !important;
  border-color: transparent !important;
  box-shadow: 0 14px 28px rgba(46, 116, 225, .22) !important;
}

html[data-style="moon"] .project-detail-media {
  gap: 10px !important;
}

html[data-style="moon"] .project-detail-media .project-detail-label {
  border-color: rgba(91, 164, 255, .34) !important;
  background: rgba(7, 17, 30, .82) !important;
  color: #78b5ff !important;
}

html[data-style="moon"] .project-detail-media .project-detail-image-wrap {
  border: 0 !important;
  background: transparent !important;
}

html[data-style="moon"] .project-detail-media .project-detail-image-wrap img[src*="assets/illustrations/projects/cards/"] {
  border-color: rgba(83, 148, 214, .28) !important;
  background: #04101d !important;
  box-shadow: 0 18px 38px rgba(0,0,0,.34) !important;
}

html[data-style="moon"] .project-detail-evidence {
  border-top: 1px solid rgba(77, 140, 202, .16) !important;
  border-bottom: 1px solid rgba(77, 140, 202, .16) !important;
  background: rgba(4, 12, 22, .72) !important;
}

html[data-style="moon"] .project-detail-evidence div {
  border-right-color: rgba(77, 140, 202, .12) !important;
}

html[data-style="moon"] .project-detail-evidence strong {
  color: #6fafff !important;
}

html[data-style="moon"] .project-detail-evidence span {
  color: #71869e !important;
}

html[data-style="moon"] .project-detail-grid article,
html[data-style="moon"] .project-detail-section,
html[data-style="moon"] .project-detail-tools,
html[data-style="moon"] .project-evidence-card {
  border-color: rgba(77, 140, 202, .17) !important;
  background: linear-gradient(145deg, rgba(9, 18, 31, .90), rgba(5, 12, 22, .94)) !important;
  box-shadow: none !important;
}

html[data-style="moon"] .project-detail-grid h2,
html[data-style="moon"] .project-detail-section h2,
html[data-style="moon"] .project-detail-tools h2 {
  color: #edf5ff !important;
}

html[data-style="moon"] .project-detail-grid p,
html[data-style="moon"] .project-delivered,
html[data-style="moon"] .project-flow li,
html[data-style="moon"] .project-evidence-card span {
  color: #8398af !important;
}

html[data-style="moon"] .project-flow li {
  border-color: rgba(77, 140, 202, .16) !important;
  background: rgba(6, 15, 27, .76) !important;
}

html[data-style="moon"] .project-flow li span,
html[data-style="moon"] .project-evidence-card small {
  color: #67a9ff !important;
}

html[data-style="moon"] .project-detail-tools span {
  border-color: rgba(77, 140, 202, .20) !important;
  background: rgba(6, 15, 27, .82) !important;
  color: #9bb0c7 !important;
}

@media (max-width: 760px) {
  html[data-style="moon"] .project-page-shell {
    width: min(100% - 24px, 680px) !important;
  }
  html[data-style="moon"] .project-detail-hero {
    grid-template-columns: 1fr !important;
    padding: 24px 18px 20px !important;
  }
}

/* Keep reordered Moon sections fully measurable for hash navigation and active-state tracking. */
html[data-style="moon"] .full-section,
html[data-style="moon"] .moon-education {
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
}

/* V21.61 — Moon navigation, rhythm, and compact desktop cleanup */
html[data-style="moon"] .home {
  min-height: auto !important;
  padding-bottom: 24px !important;
}

html[data-style="moon"] .full-section {
  min-height: 0 !important;
  padding: 58px 0 !important;
  scroll-margin-top: 12px !important;
}

html[data-style="moon"] .v213-projects,
html[data-style="moon"] .v213-proof,
html[data-style="moon"] .v213-capabilities,
html[data-style="moon"] .v213-experience,
html[data-style="moon"] .v213-about,
html[data-style="moon"] .v213-credentials,
html[data-style="moon"] .v213-contact {
  min-height: 0 !important;
}

html[data-style="moon"] .section-heading,
html[data-style="moon"] .moon-section-heading {
  margin-bottom: 26px !important;
}

html[data-style="moon"] .moon-education-timeline {
  margin-top: 10px !important;
}

@media (min-width: 981px) and (max-height: 920px) {
  html[data-style="moon"] .sidebar-inner {
    padding-top: 12px !important;
    padding-bottom: 10px !important;
  }

  html[data-style="moon"] .language-panel {
    margin-top: 8px !important;
    margin-bottom: 5px !important;
  }

  html[data-style="moon"] .theme-panel {
    margin-bottom: 5px !important;
    gap: 3px !important;
  }

  html[data-style="moon"] .theme-switch button {
    min-height: 26px !important;
  }

  html[data-style="moon"] .side-nav {
    gap: 1px !important;
  }

  html[data-style="moon"] .side-nav-link {
    min-height: 36px !important;
    font-size: 11px !important;
  }

  html[data-style="moon"] .sidebar-footer {
    gap: 6px !important;
  }

  html[data-style="moon"] .social-row a {
    height: 36px !important;
  }

  html[data-style="moon"] .resume-button {
    min-height: 38px !important;
  }
}

/* V21.70 — Moon visual blueprint alignment */
html[data-style="moon"] .side-nav-link[data-section="proof"],
html[data-style="moon"] .side-nav-link[data-section="credentials"],
html[data-style="moon"] #proof,
html[data-style="moon"] #credentials {
  display: none !important;
}

html[data-style="moon"] #home { order: 1; }
html[data-style="moon"] #about { order: 2; }
html[data-style="moon"] #experience { order: 3; }
html[data-style="moon"] #education { order: 4; }
html[data-style="moon"] #capabilities { order: 5; }
html[data-style="moon"] #projects { order: 6; }
html[data-style="moon"] #contact { order: 7; }

html[data-style="moon"] .side-nav-link[data-section="home"] { order: 1; }
html[data-style="moon"] .side-nav-link[data-section="about"] { order: 2; }
html[data-style="moon"] .side-nav-link[data-section="experience"] { order: 3; }
html[data-style="moon"] .side-nav-link[data-section="education"] { order: 4; }
html[data-style="moon"] .side-nav-link[data-section="capabilities"] { order: 5; }
html[data-style="moon"] .side-nav-link[data-section="projects"] { order: 6; }
html[data-style="moon"] .side-nav-link[data-section="contact"] { order: 7; }

@media (min-width:1100px) {
  html[data-style="moon"][lang="en"] .v229-proof,
  html[data-style="moon"][lang="en"] .v229-capabilities,
  html[data-style="moon"][lang="en"] .v229-about,
  html[data-style="moon"][lang="en"] .v229-credentials {
    aspect-ratio: auto !important;
    background-image: none !important;
    overflow: visible !important;
  }

  html[data-style="moon"][lang="en"] .v229-about > .page-shell,
  html[data-style="moon"][lang="en"] .v229-capabilities > .page-shell,
  html[data-style="moon"][lang="en"] .v229-proof > .page-shell,
  html[data-style="moon"][lang="en"] .v229-credentials > .page-shell {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    user-select: auto !important;
  }
}

html[data-style="moon"] #about .about-layout {
  grid-template-columns: minmax(0,1fr) minmax(300px,360px) !important;
  gap: 46px !important;
  align-items: center !important;
}

html[data-style="moon"] #about .v228-about-values {
  display: none !important;
}

html[data-style="moon"] .moon-about-visual {
  position: relative;
  display: block !important;
  min-height: 390px;
  border: 1px solid rgba(78,148,215,.22);
  border-radius: 18px;
  overflow: hidden;
  background: #07111e;
  box-shadow: 0 20px 46px rgba(0,0,0,.34);
}

html[data-style="moon"] .moon-about-visual img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) contrast(1.05) brightness(.78);
}

html[data-style="moon"] .moon-about-quote {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(72%, 250px);
  padding: 16px 17px;
  border: 1px solid rgba(91,164,255,.28);
  border-radius: 13px;
  background: rgba(3,10,18,.86);
  color: #f4f8ff;
  font-size: 15px;
  line-height: 1.45;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,.32);
}

html[data-style="moon"] .moon-about-quote small {
  display: block;
  margin-top: 9px;
  color: #6faeff;
  font-size: 10px;
  letter-spacing: .04em;
}

html[data-style="moon"] .moon-about-facts {
  gap: 8px !important;
}

html[data-style="moon"] .moon-about-facts span {
  min-height: 40px !important;
  display: grid !important;
  grid-template-columns: 24px minmax(0,1fr);
  gap: 8px;
  padding: 0 12px !important;
  border: 1px solid rgba(75,141,205,.18);
  background: rgba(6,15,26,.66);
}

html[data-style="moon"] .moon-about-facts i {
  color: #58a7ff;
  font-style: normal;
  text-align: center;
}

html[data-style="moon"] #experience .experience-v2 {
  display: none !important;
}

html[data-style="moon"] .moon-experience-timeline {
  position: relative;
  display: grid !important;
  gap: 16px;
  margin-top: 6px;
  padding-left: 26px;
}

html[data-style="moon"] .moon-experience-timeline::before {
  content:"";
  position:absolute;
  left:7px;
  top:18px;
  bottom:18px;
  width:2px;
  background: linear-gradient(#58a8ff,rgba(88,168,255,.08));
}

html[data-style="moon"] .moon-experience-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 145px minmax(0,1fr) 86px;
  gap: 24px;
  align-items: start;
  padding: 22px 24px;
  border: 1px solid rgba(75,141,205,.20);
  border-radius: 15px;
  background: linear-gradient(145deg,rgba(10,19,33,.94),rgba(5,12,22,.97));
}
html[data-style="moon"] .moon-experience-timeline article::before {
  content:"";
  position:absolute;
  left:-25px;
  top:30px;
  width:10px;height:10px;
  border:2px solid #59a8ff;
  border-radius:50%;
  background:#020711;
  box-shadow:0 0 14px rgba(89,168,255,.38);
}
html[data-style="moon"] .moon-exp-date { color:#6eafff;font-size:11px;font-weight:800;letter-spacing:.07em; }
html[data-style="moon"] .moon-exp-copy h3 { margin:0;color:#f1f6fd;font-size:20px; }
html[data-style="moon"] .moon-exp-copy strong { display:block;margin-top:5px;color:#70adfa;font-size:12px; }
html[data-style="moon"] .moon-exp-copy ul { margin:12px 0 0;padding-left:17px;color:#8499b0;font-size:12px;line-height:1.55; }
html[data-style="moon"] .moon-exp-mark {
  width:72px;height:72px;display:grid;place-items:center;
  border:1px solid rgba(79,151,225,.25);border-radius:13px;background:rgba(7,16,28,.82);
}
html[data-style="moon"] .moon-exp-mark img { max-width:58px;max-height:52px;object-fit:contain; }
html[data-style="moon"] .moon-exp-bk { color:#66aaff;font-size:24px;font-weight:900;letter-spacing:-.05em; }

html[data-style="moon"] .moon-education-timeline article {
  grid-template-columns:130px minmax(0,1fr) 74px !important;
  align-items:center;
}
html[data-style="moon"] .moon-education-badge {
  width:62px;height:62px;display:grid;place-items:center;
  border:1px solid rgba(90,164,255,.26);border-radius:50%;
  background:rgba(7,16,28,.86);color:#69adff;font-weight:900;font-size:16px;
  box-shadow:0 0 18px rgba(70,150,255,.10);
}

html[data-style="moon"] #capabilities .v228-cap-grid { display:none !important; }
html[data-style="moon"] #capabilities .v228-cap-heading h2::first-letter { text-transform:none; }

html[data-style="moon"] .moon-skills-layout {
  display:grid !important;
  grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);
  gap:16px;
  margin-top:4px;
}
html[data-style="moon"] .moon-tool-panel,
html[data-style="moon"] .moon-focus-panel {
  padding:18px;
  border:1px solid rgba(75,141,205,.20);
  border-radius:15px;
  background:linear-gradient(145deg,rgba(10,19,33,.94),rgba(5,12,22,.97));
}
html[data-style="moon"] .moon-tool-panel h3,
html[data-style="moon"] .moon-focus-panel h3 {
  margin:0 0 14px;
  color:#82b8ff;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
html[data-style="moon"] .moon-tool-grid {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:9px;
}
html[data-style="moon"] .moon-tool-grid article {
  min-height:86px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:10px 6px;
  border:1px solid rgba(76,138,199,.17);
  border-radius:11px;
  background:rgba(6,15,27,.80);
}
html[data-style="moon"] .moon-tool-grid img {
  width:34px;height:34px;object-fit:contain;
}
html[data-style="moon"] .moon-tool-grid article > span {
  min-width:34px;height:34px;display:grid;place-items:center;
  color:#72b3ff;font-size:11px;font-weight:900;
  border:1px solid rgba(86,159,236,.20);border-radius:8px;
}
html[data-style="moon"] .moon-tool-grid b { color:#c8d8e9;font-size:10px;text-align:center; }
html[data-style="moon"] .moon-focus-panel ul { list-style:none;margin:0;padding:0;display:grid;gap:9px; }
html[data-style="moon"] .moon-focus-panel li {
  position:relative;padding:10px 12px 10px 34px;
  border:1px solid rgba(76,138,199,.14);border-radius:9px;
  color:#93a9c0;font-size:11px;background:rgba(6,15,27,.68);
}
html[data-style="moon"] .moon-focus-panel li::before {
  content:"◇";position:absolute;left:12px;top:9px;color:#58a8ff;
}

html[data-style="moon"] .moon-detail-sidebar {
  position: fixed;
  left: 16px;
  top: 16px;
  bottom: 16px;
  z-index: 1200;
  width: 176px;
  display: flex !important;
  flex-direction: column;
  padding: 16px 12px;
  border: 1px solid rgba(75,141,205,.22);
  border-radius: 16px;
  background: rgba(2,8,15,.96);
  box-shadow: 14px 0 42px rgba(0,0,0,.28);
}
html[data-style="moon"] .moon-detail-brand {
  display:flex;align-items:center;gap:9px;
  padding:4px 5px 14px;
  border-bottom:1px solid rgba(76,138,199,.14);
}
html[data-style="moon"] .moon-detail-brand img { width:40px;height:40px;object-fit:contain; }
html[data-style="moon"] .moon-detail-brand span { color:#f0f6ff;font-size:10px;font-weight:800;letter-spacing:.05em; }
html[data-style="moon"] .moon-detail-brand small { display:block;margin-top:2px;color:#65a9ff;font-size:7px;letter-spacing:.12em; }
html[data-style="moon"] .moon-detail-sidebar nav { display:grid;gap:4px;margin-top:14px; }
html[data-style="moon"] .moon-detail-sidebar nav a {
  min-height:34px;display:flex;align-items:center;padding:0 10px;
  border:1px solid transparent;border-radius:8px;color:#8da2ba;font-size:10px;font-weight:600;
}
html[data-style="moon"] .moon-detail-sidebar nav a:hover,
html[data-style="moon"] .moon-detail-sidebar nav a.active {
  color:#f1f7ff;border-color:rgba(83,154,232,.45);
  background:linear-gradient(90deg,rgba(41,104,180,.34),rgba(5,14,25,.78));
  box-shadow:inset 3px 0 0 #4c9fff;
}
html[data-style="moon"] .moon-detail-controls { margin-top:auto;display:grid;gap:6px; }
html[data-style="moon"] .moon-detail-controls > span { color:#607995;font-size:7px;text-transform:uppercase;letter-spacing:.10em; }
html[data-style="moon"] .moon-detail-controls > div { display:grid;grid-template-columns:1fr 1fr;gap:5px; }
html[data-style="moon"] .moon-detail-controls button {
  min-height:28px;border:1px solid rgba(76,138,199,.23);border-radius:7px;
  background:rgba(6,15,27,.84);color:#869ab1;font-size:9px;cursor:pointer;
}
html[data-style="moon"] .moon-detail-controls button.active {
  color:white;border-color:#58a8ff;background:rgba(45,101,180,.34);
}
html[data-style="moon"] body.project-page .project-page-shell {
  width:min(1180px,calc(100% - 240px)) !important;
  margin-left:214px !important;
  margin-right:auto !important;
}
html[data-style="moon"] body.project-page .project-page-header {
  display:none !important;
}

html[data-style="moon"] #contact .contact-layout {
  position: relative !important;
  inset: auto !important;
}

@media (max-width: 1100px) {
  html[data-style="moon"] #about .about-layout {
    grid-template-columns: 1fr !important;
  }
  html[data-style="moon"] .moon-about-visual {
    min-height: 340px;
  }
  html[data-style="moon"] .moon-about-visual img {
    min-height: 340px;
  }
  html[data-style="moon"] .moon-skills-layout {
    grid-template-columns: 1fr !important;
  }
  html[data-style="moon"] .moon-tool-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
}

@media (max-width: 980px) {
  html[data-style="moon"] .moon-detail-sidebar {
    display:none !important;
  }
  html[data-style="moon"] body.project-page .project-page-shell {
    width:min(100% - 30px, 1180px) !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
  html[data-style="moon"] body.project-page .project-page-header {
    display:flex !important;
  }
}

@media (max-width: 760px) {
  html[data-style="moon"] .moon-experience-timeline {
    padding-left:18px;
  }
  html[data-style="moon"] .moon-experience-timeline article {
    grid-template-columns:1fr !important;
    gap:10px;
    padding:18px;
  }
  html[data-style="moon"] .moon-exp-mark {
    width:56px;height:56px;
  }
  html[data-style="moon"] .moon-education-timeline article {
    grid-template-columns:1fr !important;
    gap:8px !important;
  }
  html[data-style="moon"] .moon-education-badge {
    width:50px;height:50px;
  }
  html[data-style="moon"] .moon-tool-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  html[data-style="moon"] .moon-about-visual,
  html[data-style="moon"] .moon-about-visual img {
    min-height:300px;
  }
}

html[data-style="moon"] .moon-hello {
  display:block !important;
  margin-top:18px;
  color:#9db0c5;
  font-size:18px;
  font-weight:700;
  letter-spacing:.01em;
}
html[data-style="moon"] .hero-copy .status-pill {
  display:none !important;
}
html[data-style="moon"] #projects .projects-fidelity-heading > * {
  display:none !important;
}
html[data-style="moon"] #projects .projects-fidelity-heading::after {
  content:"Projects";
  display:block;
  color:#f4f8ff;
  font-size:clamp(40px,4.2vw,58px);
  line-height:.98;
  letter-spacing:-.045em;
}
html[data-style="moon"][lang="th"] #projects .projects-fidelity-heading::after {
  content:"โปรเจกต์";
}
html[data-style="moon"] #contact .v231-line-row,
html[data-style="moon"] #contact a[href*="badge-portal"] {
  display:none !important;
}
html[data-style="moon"] #contact .v224-contact-list {
  align-self:center;
}

html[data-style="moon"] #about [data-i18n="about.p2"] {
  display:none !important;
}

/* V21.71 — reset legacy reference-layout offsets inside Moon */
@media (min-width:1100px) {
  html[data-style="moon"] #about > .page-shell,
  html[data-style="moon"] #capabilities > .page-shell {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: min(1180px, calc(100% - 56px)) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
html[data-style="moon"] .command-wrap {
  box-sizing: border-box;
  width: calc(100vw - var(--main-left) - var(--page-right) - 8px) !important;
  max-width: calc(100vw - var(--main-left) - var(--page-right) - 8px) !important;
}

/* V21.72 — Moon About portrait: office context + translucent gradient treatment */
html[data-style="moon"] .moon-about-visual {
  isolation: isolate;
  border: 1px solid rgba(85, 166, 255, .48) !important;
  background:
    radial-gradient(circle at 78% 18%, rgba(35, 123, 255, .20), transparent 34%),
    linear-gradient(145deg, rgba(8, 27, 49, .72), rgba(2, 8, 17, .92)) !important;
  box-shadow:
    0 22px 54px rgba(0, 0, 0, .42),
    0 0 30px rgba(41, 130, 255, .11),
    inset 0 0 0 1px rgba(117, 194, 255, .08) !important;
}
html[data-style="moon"] .moon-about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(90, 190, 255, .18), transparent 26%, transparent 68%, rgba(48, 105, 255, .13)),
    linear-gradient(to top, rgba(1, 7, 15, .26), transparent 42%);
}
html[data-style="moon"] .moon-about-visual::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(132, 203, 255, .07);
  border-radius: 13px;
}
html[data-style="moon"] .moon-about-visual img {
  position: relative;
  z-index: 1;
  object-position: 54% 36% !important;
  filter: saturate(.96) contrast(1.04) brightness(.92) !important;
}
html[data-style="moon"] .moon-about-quote {
  z-index: 3;
  border-color: rgba(99, 175, 255, .44) !important;
  background:
    linear-gradient(135deg, rgba(6, 24, 43, .72), rgba(2, 10, 19, .58)) !important;
  backdrop-filter: blur(14px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(135%) !important;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, .38),
    0 0 22px rgba(48, 132, 255, .08),
    inset 0 0 0 1px rgba(126, 198, 255, .05) !important;
}

/* V21.73 — Moon About: frameless transparent portrait */
@media (min-width: 1100px) {
  html[data-style="moon"] #about .about-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px) !important;
    gap: 42px !important;
  }
}

html[data-style="moon"] .moon-about-visual {
  position: relative !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
  isolation: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-style="moon"] .moon-about-visual::before,
html[data-style="moon"] .moon-about-visual::after {
  display: none !important;
  content: none !important;
}

html[data-style="moon"] .moon-about-visual img {
  position: relative !important;
  z-index: 1;
  display: block;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 540px !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .32)) !important;
}

html[data-style="moon"] .moon-about-quote {
  display: none !important;
}

@media (max-width: 1099px) {
  html[data-style="moon"] .moon-about-visual,
  html[data-style="moon"] .moon-about-visual img {
    min-height: 0 !important;
  }

  html[data-style="moon"] .moon-about-visual img {
    width: min(100%, 520px) !important;
    margin: 0 auto;
  }
}

/* V21.74 — Moon Projects: equal card rhythm + repository CTA parity */
@media (min-width: 1001px) {
  html[data-style="moon"] #projects .project-detail-grid {
    grid-auto-rows: 1fr !important;
    align-items: stretch !important;
  }

  html[data-style="moon"] #projects .project-detail-grid article:has(img[src*="assets/illustrations/projects/cards/"]) {
    height: 100% !important;
    min-height: 492px !important;
  }

  html[data-style="moon"] #projects .project-detail-grid article:has(img[src*="assets/illustrations/projects/cards/"]) h3 {
    min-height: 2.4em !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  html[data-style="moon"] #projects .project-detail-grid article:has(img[src*="assets/illustrations/projects/cards/"]) p {
    height: 7.25em !important;
    min-height: 7.25em !important;
    max-height: 7.25em !important;
    margin-bottom: 0 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden !important;
  }

  html[data-style="moon"] #projects .project-detail-grid article:has(img[src*="assets/illustrations/projects/cards/"]) > .project-detail-metrics {
    margin-top: auto !important;
  }
}

html[data-style="moon"] #projects .project-repo-cta {
  flex: 0 0 auto !important;
  width: 100% !important;
  min-height: 36px !important;
  margin-top: 12px !important;
  padding: 0 11px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: 1px solid rgba(90, 164, 240, .30) !important;
  border-radius: 9px !important;
  background: linear-gradient(180deg, rgba(10, 26, 43, .78), rgba(5, 14, 25, .88)) !important;
  color: #a9c2dc !important;
  font-size: 9px !important;
  font-weight: 750 !important;
  letter-spacing: .015em;
  text-decoration: none !important;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

html[data-style="moon"] #projects .project-repo-cta .repo-mark {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(100, 176, 255, .28);
  border-radius: 6px;
  color: #71b4ff;
  background: rgba(8, 22, 38, .78);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: -.02em;
}

html[data-style="moon"] #projects .project-repo-cta:hover {
  color: #f2f8ff !important;
  border-color: rgba(97, 178, 255, .60) !important;
  background: linear-gradient(180deg, rgba(17, 45, 74, .88), rgba(7, 21, 37, .94)) !important;
  transform: translateY(-1px);
}

@media (max-width: 1000px) {
  html[data-style="moon"] #projects .project-detail-grid article:has(img[src*="assets/illustrations/projects/cards/"]) h3,
  html[data-style="moon"] #projects .project-detail-grid article:has(img[src*="assets/illustrations/projects/cards/"]) p {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
  }
}

@media (min-width: 1001px) {
  html[data-style="moon"] #projects .project-detail-05 > .project-detail-metrics {
    min-height: 69px !important;
    height: 69px !important;
  }

  html[data-style="moon"] #projects .project-detail-05 > .project-detail-metrics b {
    min-height: 58px !important;
  }
}
