/* ==========================================================================
   hboyo. — page-level styles
   ========================================================================== */

/* ---------------- mobile menu ---------------- */

.mmenu {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 55;
  background: var(--lime);
  padding: 8px var(--pad-x) 32px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.mmenu.is-open {
  opacity: 1;
  transform: none;
}

.mmenu nav {
  border-top: 1px solid var(--rule);
}

.mmenu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mmenu a[aria-current="page"] {
  color: var(--ink);
}

.mmenu a[aria-current="page"] span:first-child::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  background: var(--ink);
}

.mmenu-n {
  font-family: var(--latin);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

body.menu-open {
  overflow: hidden;
}

/* ---------------- home extras ---------------- */

/* the section heading is visual on mobile, structural on desktop */
.selected-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.load-error {
  padding: 24px 0;
  font-size: var(--t-sm);
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .selected-title {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 16px;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

.page-head {
  padding: clamp(34px, 4.4vw, 72px) var(--pad-x) clamp(22px, 2.6vw, 38px);
  border-bottom: 1px solid var(--rule);
}

.page-head h1 {
  margin-top: 0;
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.page-head .lead {
  margin-top: 12px;
  max-width: 46ch;
  font-size: var(--t-lead);
  color: #2e3027;
}

.panel {
  background: var(--paper);
  padding: clamp(26px, 3vw, 44px) var(--pad-x) clamp(40px, 5vw, 76px);
}

.panel--lime {
  background: var(--lime);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-paper);
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: var(--t-head);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head .count {
  font-family: var(--latin);
  font-size: var(--t-xs);
  color: var(--ink-soft);
}

.section-head .more {
  margin-left: auto;
  font-size: var(--t-xs);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
}

/* ---------------- filters ---------------- */

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 0 0 24px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid var(--rule-strong);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--ink);
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.chip .n {
  font-family: var(--latin);
  opacity: 0.55;
}

.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--rule-strong);
  padding: 6px 0;
  width: clamp(200px, 24vw, 320px);
}

.search input {
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--t-sm);
  color: var(--ink);
  width: 100%;
  outline: none;
}

.search input::placeholder {
  color: var(--ink-faint);
}

.search svg {
  flex: none;
  opacity: 0.5;
}

.empty {
  padding: 60px 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: var(--t-sm);
}

/* ---------------- asymmetric work gallery ---------------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 46px) clamp(16px, 2vw, 30px);
  align-items: start;
}

.work-item {
  grid-column: span 6;
  min-width: 0;
}

.work-item[data-size="wide"] {
  grid-column: span 7;
}

.work-item[data-size="narrow"] {
  grid-column: span 5;
}

.work-item[data-offset="1"] {
  margin-top: clamp(0px, 3vw, 46px);
}

.work-item-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e4e0d6;
}

.work-item[data-size="wide"] .work-item-media {
  aspect-ratio: 16 / 10;
}

.work-item[data-size="narrow"] .work-item-media {
  aspect-ratio: 5 / 4;
}

.work-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.work-item-media.is-contain {
  background: #1c1f21;
}

.work-item-media.is-contain img {
  object-fit: contain;
  padding: 9%;
  image-rendering: auto;
}

.work-item:hover .work-item-media img {
  transform: scale(1.03);
}

.work-item-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 12px;
}

.work-item-title {
  font-size: clamp(19px, 1.7vw, 25px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.work-item-en {
  font-family: var(--latin);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.work-item-sub {
  margin-top: 5px;
  font-size: var(--t-xs);
  color: var(--ink-soft);
  max-width: 38ch;
  line-height: 1.5;
}

.work-item-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  font-size: 13px;
  font-family: var(--latin);
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.pill {
  border: 1px solid var(--rule-strong);
  padding: 3px 8px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.pill--demo {
  border-color: var(--ink);
  color: var(--ink);
}

.work-item-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.work-item {
  position: relative;
}

@media (max-width: 760px) {
  .search {
    width: 100%;
    margin-left: 0;
    flex: 1 1 100%;
  }
  .filter-row {
    gap: 8px 10px;
  }
}

@media (max-width: 900px) {
  .work-item,
  .work-item[data-size="wide"],
  .work-item[data-size="narrow"] {
    grid-column: span 12;
  }
  .work-item[data-offset="1"] {
    margin-top: 0;
  }
  .work-item[data-size="wide"] .work-item-media,
  .work-item[data-size="narrow"] .work-item-media {
    aspect-ratio: 16 / 10;
  }
}

/* ==========================================================================
   Project detail
   ========================================================================== */

.detail {
  background: var(--paper);
}

.detail-top {
  padding: clamp(22px, 2.6vw, 38px) var(--pad-x) clamp(24px, 3vw, 40px);
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-xs);
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.crumb a {
  border-bottom: 1px solid transparent;
}

.crumb a:hover {
  border-color: var(--ink-soft);
}

.detail-title {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 20px;
  margin-bottom: 14px;
}

.detail-title h1 {
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.detail-title .en {
  font-family: var(--latin);
  font-size: clamp(13px, 1.4vw, 17px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 6px;
}

.detail-lead {
  max-width: 62ch;
  font-size: var(--t-lead);
  line-height: 1.6;
  color: #2e3027;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 20px 26px;
  margin-top: clamp(24px, 3vw, 38px);
  padding-top: 20px;
  border-top: 1px solid var(--rule-paper);
}

.fact {
  padding: 0;
  min-width: 0;
}

.fact dt {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ink-faint);
  font-family: var(--sans);
}

.fact dd {
  margin: 6px 0 0;
  font-size: var(--t-sm);
  font-weight: 500;
  line-height: 1.45;
}

.detail-cover {
  padding: 0 var(--pad-x);
}

.detail-cover img {
  width: 100%;
  height: auto;
  max-height: 78svh;
  object-fit: cover;
}

.detail-body {
  padding: clamp(30px, 4vw, 60px) var(--pad-x) clamp(40px, 5vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.detail-aside {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.detail-aside h2 {
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--latin);
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.tool-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-paper);
  font-size: var(--t-sm);
}

.tool-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--ink);
  flex: none;
  transform: translateY(-3px);
}

.detail-main > * + * {
  margin-top: clamp(28px, 3.4vw, 48px);
}

.block-title {
  font-size: var(--t-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.prose p {
  max-width: 64ch;
  font-size: var(--t-body);
  line-height: 1.72;
}

.prose p + p {
  margin-top: 14px;
}

.steps {
  counter-reset: step;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--rule-paper);
}

.step:last-child {
  border-bottom: 1px solid var(--rule-paper);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--latin);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  padding-top: 3px;
}

.step h3 {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.step p {
  margin-top: 6px;
  font-size: var(--t-sm);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 60ch;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule-paper);
  vertical-align: top;
}

.spec-table th {
  font-weight: 400;
  color: var(--ink-soft);
  width: 34%;
}

/* ---------------- media gallery ---------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}

.gallery figure {
  grid-column: span 6;
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #e4e0d6;
  cursor: zoom-in;
}

.gallery figure.is-full {
  grid-column: span 12;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery figure:hover img {
  transform: scale(1.02);
}

.gallery figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 8px 0 0;
  margin: 0;
}

.gallery figure.has-caption {
  display: flex;
  flex-direction: column;
}

.gallery figure.has-caption img {
  flex: none;
}

@media (max-width: 700px) {
  .gallery figure,
  .gallery figure.is-full {
    grid-column: span 12;
  }
}

/* ---------------- video ---------------- */

.vblock {
  position: relative;
  background: var(--dark);
  overflow: hidden;
}

.vblock video {
  width: 100%;
  height: auto;
  display: block;
}

.vblock .vposter {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: #101214;
  cursor: pointer;
}

.vblock .vposter img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.vplay {
  position: relative;
  z-index: 2;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(242, 239, 233, 0.7);
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.vposter:hover .vplay {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.vcaption {
  font-size: 13px;
  color: var(--ink-soft);
  padding-top: 8px;
}

/* ---------------- sprite player ---------------- */

.sprite {
  border: 1px solid var(--rule-strong);
  background: #1b1e20;
}

.sprite-stage {
  display: grid;
  place-items: center;
  padding: clamp(14px, 2vw, 26px);
  min-height: 220px;
  background: #1a1d1f;
}

.sprite-stage canvas {
  width: min(100%, 320px);
  height: auto;
  image-rendering: pixelated;
  background: transparent;
}

.sprite-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 1px;
  background: rgba(242, 239, 233, 0.14);
  border-top: 1px solid rgba(242, 239, 233, 0.14);
}

.sprite-field {
  background: #1b1e20;
  padding: 12px 14px;
}

.sprite-field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(242, 239, 233, 0.74);
  margin-bottom: 7px;
  font-family: var(--latin);
}

.sprite-field select,
.sprite-field input {
  width: 100%;
  background: #2a2e31;
  color: var(--paper);
  border: 0;
  font: inherit;
  font-size: 13px;
  padding: 6px 8px;
}

.sprite-field output {
  font-family: var(--latin);
  font-size: 12px;
  color: var(--lime);
}

.sprite-actions {
  display: flex;
  gap: 8px;
  background: #1b1e20;
  padding: 12px 14px;
  align-items: center;
}

.sprite-btn {
  border: 1px solid rgba(242, 239, 233, 0.34);
  color: var(--paper);
  padding: 6px 12px;
  font-size: 12px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.sprite-btn:hover,
.sprite-btn[aria-pressed="true"] {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.sprite-note {
  font-size: 13px;
  color: rgba(242, 239, 233, 0.5);
  padding: 10px 14px 12px;
  background: #1b1e20;
  border-top: 1px solid rgba(242, 239, 233, 0.1);
}

/* ---------------- model ---------------- */

.model-block {
  border: 1px solid var(--rule-strong);
  background: #ece8e0;
}

.model-stage {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
}

.model-stage img {
  width: 100%;
  height: auto;
  max-height: 60svh;
  object-fit: contain;
}

.model-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--rule-paper);
  background: var(--paper);
}

.model-bar .hint {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-faint);
}

.model-bar .sprite-btn {min-height:44px;color:var(--ink);border-color:var(--rule-strong)}
.model-bar .sprite-btn:hover,.model-bar .sprite-btn[aria-pressed="true"] {background:var(--lime);color:var(--ink);border-color:var(--ink)}

/* ---------------- docs ---------------- */

.doc-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--rule-paper);
}

.doc-list li:last-child {
  border-bottom: 1px solid var(--rule-paper);
}

.doc-kind {
  font-family: var(--latin);
  font-size: 10px;
  letter-spacing: 0.1em;
  border: 1px solid var(--rule-strong);
  padding: 3px 7px;
  text-transform: uppercase;
  flex: none;
}

.doc-name {
  font-size: var(--t-sm);
}

.doc-list a:hover .doc-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(12, 13, 12, 0.94);
  display: grid;
  grid-template-rows: auto 1fr auto;
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
}

.lb-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px clamp(14px, 2vw, 26px);
  color: var(--paper);
}

.lb-count {
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.lb-close {
  margin-left: auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(242, 239, 233, 0.32);
  display: grid;
  place-items: center;
  color: var(--paper);
}

.lb-close:hover,
.lb-nav:hover {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.lb-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 clamp(10px, 3vw, 60px);
  min-height: 0;
}

.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center;
  transition: transform 0.2s var(--ease);
}

.lb-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px clamp(14px, 2vw, 26px) 20px;
  color: rgba(242, 239, 233, 0.82);
  font-size: 13px;
}

.lb-nav {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(242, 239, 233, 0.32);
  display: grid;
  place-items: center;
  color: var(--paper);
  flex: none;
}

.lb-zoom {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   Log page
   ========================================================================== */

.log-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}

.log-nav {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.log-nav a {
  display: block;
  padding: 9px 0 9px 12px;
  border-left: 2px solid transparent;
  font-size: var(--t-sm);
  color: var(--ink-soft);
}

.log-nav a:hover {
  color: var(--ink);
}

.log-nav a[aria-current="true"] {
  border-left-color: var(--ink);
  color: var(--ink);
  font-weight: 600;
}

.timeline {
  border-top: 1px solid var(--rule-paper);
}

.tl-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-paper);
}

.tl-date {
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  padding-top: 3px;
}

.tl-title {
  font-size: var(--t-body);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tl-body {
  margin-top: 5px;
  font-size: var(--t-sm);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 62ch;
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.log-section + .log-section {
  margin-top: clamp(36px, 4vw, 64px);
}

.log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
}

.log-table th {
  text-align: left;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  padding: 0 12px 9px 0;
  border-bottom: 1px solid var(--rule-strong);
  font-weight: 500;
}

.log-table td {
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--rule-paper);
  vertical-align: top;
}

.log-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 70ch;
}

@media (max-width: 820px) {
  .log-layout {
    grid-template-columns: 1fr;
  }
  .log-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px solid var(--rule-paper);
    padding-bottom: 14px;
  }
  .log-nav a {
    border-left: 0;
    border: 1px solid var(--rule-strong);
    padding: 6px 11px;
    font-size: 12px;
  }
  .log-nav a[aria-current="true"] {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
  }
  .tl-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ==========================================================================
   About / Contact
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: start;
}

.about-body p {
  font-size: var(--t-lead);
  line-height: 1.68;
  max-width: 56ch;
}

.about-body p + p {
  margin-top: 16px;
}

.about-body .small {
  font-size: var(--t-body);
  color: var(--ink-soft);
}

.about-side {
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}

.about-side h2 {
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--latin);
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.kv {
  margin-bottom: 22px;
}

.kv li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-paper);
  font-size: var(--t-sm);
}

.kv li span:last-child {
  color: var(--ink-soft);
  text-align: right;
}

.contact-list {
  border-top: 1px solid var(--rule-strong);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 24px;
  padding: clamp(18px, 2.2vw, 28px) 0;
  border-bottom: 1px solid var(--rule-paper);
}

.contact-row .label {
  width: 128px;
  flex: none;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--ink-faint);
  font-family: var(--sans);
}

.contact-row .value {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.contact-row .value a {
  border-bottom: 1.5px solid var(--rule-strong);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease);
}

.contact-row .value a:hover {
  border-color: var(--ink);
}

.contact-row .note {
  flex: 1 1 220px;
  font-size: 12px;
  color: var(--ink-faint);
}

@media (max-width: 860px) {
  .detail-body,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .detail-aside {
    position: static;
  }
}

/* ==========================================================================
   Not found
   ========================================================================== */

.notfound {
  padding: clamp(60px, 10vw, 140px) var(--pad-x);
  text-align: center;
}

.notfound h1 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.notfound p {
  margin: 14px auto 26px;
  color: var(--ink-soft);
  max-width: 40ch;
}

/* Contact — cooperation modes: plain text blocks, not project cards */
.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 3.4vw, 46px) clamp(28px, 5vw, 72px);
}

.mode h3 {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mode p {
  margin-top: 8px;
  font-size: var(--t-sm);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 38ch;
}

@media (max-width: 760px) {
  .modes {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ------------------------------------------------------------------
   项目详情页：可在线玩的项目（「在线游玩 / 全屏游玩」入口）
   只在项目数据带 play 字段时出现，其它项目页面完全不受影响。
   ------------------------------------------------------------------ */
.detail-play {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 20px 0 4px;
}

.detail-play .btn {
  font: inherit;
  font-size: var(--t-sm);
  font-weight: 600;
  cursor: pointer;
}

.detail-play .play-note {
  font-size: var(--t-sm);
  color: var(--ink-soft);
}

.play-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: #0e1012;
}

.play-overlay-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
  padding: 9px 16px;
  background: #15181a;
  color: #eceae4;
  font-size: 13px;
}

.play-overlay-bar strong {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.play-overlay-bar a {
  color: #b9c8b0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.play-overlay-close {
  margin-left: auto;
  padding: 6px 16px;
  border: 1px solid #4a4f47;
  background: transparent;
  color: #eceae4;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.play-overlay-close:hover {
  background: #262b27;
}

.play-overlay iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}

@media (max-width: 760px) {
  .detail-play .play-note {
    flex-basis: 100%;
  }
  .play-overlay-bar {
    gap: 10px;
    font-size: 12px;
  }
}
