/* Shared layout with an independent palette for each project. */
:is(.gujizai-entry, .bu-entry, .tashan-entry) {
  --project-ink: #263d33;
  --project-muted: #5c6a61;
  --project-accent: #2b5b46;
  --project-hover: #204633;
  --project-stage: #e7eeea;
  --project-surface: #f6f4ee;
  --project-button-ink: #fff;
  --project-line: #d5ddd3;
  --project-selection: #ccdfd0;
  --project-selection-ink: #263d33;
  background: var(--project-surface);
  color: var(--project-ink);
  border: 0;
  padding: 0 32px;
  overflow: clip;
  scroll-margin-top: 80px;
}
.gujizai-entry {
  --project-ink: #eef7f5;
  --project-muted: #a7c0c1;
  --project-accent: #97e6dc;
  --project-hover: #b2eee5;
  --project-stage: #16272c;
  --project-surface: #101a20;
  --project-button-ink: #133630;
  --project-line: #2b4244;
  --project-selection: #b3efe5;
  --project-selection-ink: #122d31;
}
.bu-entry {
  --project-ink: #352344;
  --project-muted: #6b5a7a;
  --project-accent: #7244ad;
  --project-hover: #5e348f;
  --project-stage: #ebe1f6;
  --project-surface: #f5f0fb;
  --project-line: #e2d7ee;
  --project-selection: #e0cef6;
  --project-selection-ink: #352344;
}
.tashan-entry {
  --project-ink: #234b38;
  --project-muted: #536b58;
  --project-accent: #315f44;
  --project-hover: #254c35;
  --project-stage: #dfe9dc;
  --project-surface: #edf3eb;
  --project-line: #d2dfce;
  --project-selection: #cee1c8;
  --project-selection-ink: #234b38;
}
.bu-entry::before, .bu-entry-eyebrow::before { content: none; }

:is(.gujizai-entry-inner, .bu-entry-inner, .tashan-entry-inner) {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 64px;
  width: 100%;
  max-width: 1120px;
  min-height: 544px;
  margin: 0 auto;
  padding: 64px 0;
  border-top: 1px solid var(--project-line);
  box-sizing: border-box;
}
.gujizai-entry-inner { border-top-color: transparent; }

:is(.gujizai-entry-copy, .bu-entry-copy, .tashan-entry-copy) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
:is(.gujizai-entry, .bu-entry, .tashan-entry) h2 {
  order: 0;
  display: block;
  margin: 0 0 20px;
  color: var(--project-ink);
  font-size: 40px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.bu-entry h2 span, .tashan-entry-wordmark {
  display: inline-block;
  margin: 0 0 0 14px;
  color: var(--project-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .1em;
  vertical-align: middle;
}
.tashan-entry-wordmark[hidden] { display: none; }
.gujizai-entry h2 span,
:is(.bu-entry, .tashan-entry) h3 {
  color: var(--project-ink);
  font-size: 25px;
  font-weight: 550;
  line-height: 1.5;
  letter-spacing: -.025em;
  text-wrap: pretty;
}
.gujizai-entry h2 span {
  display: block;
  margin-top: 20px;
}
:is(.bu-entry, .tashan-entry) h3 { order: 1; margin: 0 0 20px; }
.gujizai-entry-copy > p:not(:first-child),
.bu-entry-description,
.tashan-entry-description {
  order: 2;
  max-width: 30em;
  margin: 0 0 26px;
  color: var(--project-muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
  text-wrap: pretty;
}
.gujizai-entry-copy > a,
.bu-entry-link,
.tashan-entry-link {
  order: 3;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  max-width: 100%;
  margin: 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  box-sizing: border-box;
  background: var(--project-accent);
  color: var(--project-button-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  transition: background-color 180ms ease;
}
.gujizai-entry-copy > a:hover,
.bu-entry-link:hover,
.tashan-entry-link:hover {
  background: var(--project-hover);
  color: var(--project-button-ink);
  transform: none;
}
:is(.gujizai-entry, .bu-entry, .tashan-entry) a:focus-visible {
  outline: 3px solid var(--project-accent);
  outline-offset: 5px;
}
:is(.gujizai-entry-copy > a, .bu-entry-link, .tashan-entry-link) svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}
.gujizai-entry-copy > p:first-child,
.bu-entry-eyebrow,
.tashan-entry-purpose {
  order: 4;
  display: block;
  margin: 15px 0 0;
  color: var(--project-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
}
.bu-entry-note, .tashan-entry-domain {
  order: 5;
  margin: 4px 0 0;
  color: var(--project-muted);
  font-size: 13px;
  line-height: 1.7;
}

:is(.gujizai-entry-visual, .bu-entry-art, .tashan-entry-preview) {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  aspect-ratio: 4 / 3;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 28px;
  box-sizing: border-box;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: var(--project-stage);
  box-shadow: none;
  transform: none;
}
.gujizai-entry-visual img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: normal;
  transition: transform 260ms ease;
}
.gujizai-entry-visual:hover img { transform: translateY(-3px); }
.bu-entry-art img {
  display: block;
  width: 74%;
  height: auto;
  max-width: 300px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 0;
  mix-blend-mode: multiply;
}
.bu-entry-art > span, .tashan-entry-preview figcaption {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  margin: 0;
  color: var(--project-muted);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .02em;
  text-align: center;
}
.tashan-entry-preview-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  border-radius: 8px;
  box-shadow: none;
}
.tashan-entry-preview { padding-bottom: 50px; }
.tashan-entry-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
:is(.gujizai-entry, .bu-entry, .tashan-entry) ::selection {
  background: var(--project-selection);
  color: var(--project-selection-ink);
}
@media (min-width: 768px) and (max-width: 1023px) {
  :is(.gujizai-entry-inner, .bu-entry-inner, .tashan-entry-inner) {
    gap: 36px;
    min-height: 480px;
    padding-block: 52px;
  }
  :is(.gujizai-entry, .bu-entry, .tashan-entry) h2 { font-size: 35px; }
  .gujizai-entry h2 span, :is(.bu-entry, .tashan-entry) h3 { font-size: 22px; }
  :is(.gujizai-entry-visual, .bu-entry-art, .tashan-entry-preview) { padding: 22px; }
  .tashan-entry-preview { padding-bottom: 50px; }
  .bu-entry-art > span, .tashan-entry-preview figcaption { bottom: 12px; font-size: 11px; }
}
@media (max-width: 767px) {
  :is(.gujizai-entry, .bu-entry, .tashan-entry) { padding-inline: 24px; }
  :is(.gujizai-entry-inner, .bu-entry-inner, .tashan-entry-inner) {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    min-height: 0;
    padding-block: 44px;
  }
  :is(.gujizai-entry, .bu-entry, .tashan-entry) h2 { margin-bottom: 16px; font-size: 34px; }
  .gujizai-entry h2 span, :is(.bu-entry, .tashan-entry) h3 { font-size: 22px; line-height: 1.5; }
  .gujizai-entry h2 span { margin-top: 16px; }
  :is(.bu-entry, .tashan-entry) h3 { margin-bottom: 16px; }
  .gujizai-entry-copy > p:not(:first-child), .bu-entry-description, .tashan-entry-description {
    max-width: none;
    margin-bottom: 22px;
    font-size: 17px;
    line-height: 1.85;
  }
  :is(.gujizai-entry-visual, .bu-entry-art, .tashan-entry-preview) {
    max-width: 520px;
    padding: 22px;
    justify-self: center;
  }
  .bu-entry-art img { width: 68%; }
  .tashan-entry-preview { padding-bottom: 50px; }
  .bu-entry-art > span, .tashan-entry-preview figcaption {
    right: 12px;
    bottom: 12px;
    left: 12px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gujizai-entry-visual img,
  .gujizai-entry-copy > a, .bu-entry-link, .tashan-entry-link { transition: none; }
  .gujizai-entry-visual:hover img { transform: none; }
}
