/* V4D: task-first layouts for city experiences, systems, and contact. */
.v4d .compact-page-hero {
  min-height: 0;
  padding-block: 44px;
  background: var(--bg);
}

.v4d .compact-page-hero .page-hero-inner {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px;
}

.v4d .compact-page-hero .page-title,
.v4d .contact-heading .page-title {
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.2;
  color: var(--ink);
  word-break: normal;
  text-wrap: balance;
}

.v4d .compact-page-hero .page-kicker,
.v4d .contact-heading .page-kicker {
  margin-bottom: 16px;
  font-size: 11px;
}

.v4d .compact-page-hero .page-title > span {
  display: block;
}

.v4d .compact-page-hero .page-intro {
  font-size: 17px;
  line-height: 1.7;
}

.v4d .case-deck-section,
.v4d .systems-cases {
  padding-top: 32px;
  padding-bottom: 64px;
}

.v4d .case-number {
  font-size: 11px;
}

.v4d .case-title-en {
  font-family: "AVIXI Mono", monospace;
}

/* Title and summary come first in the DOM and in the mobile reading path. */
.v4d .detail-case {
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  grid-template-areas: "poster introduction" "poster information";
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: 32px;
}

.v4d .detail-introduction { grid-area: introduction; }
.v4d .detail-poster { grid-area: poster; }
.v4d .detail-information { grid-area: information; }

.v4d .detail-copy .page-kicker {
  margin-bottom: 16px;
  font-size: 11px;
}

.v4d .detail-copy h2 {
  font-family: "AVIXI Mono", monospace;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}

.v4d .detail-copy h2 span {
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.35;
  text-wrap: balance;
}

.v4d .detail-thesis {
  margin-top: 20px;
  font-size: 17px;
}

.v4d .detail-meta {
  margin-top: 0;
}

.v4d .detail-meta dt {
  font-size: 11px;
}

.v4d .detail-meta div,
.v4d .detail-points > div {
  padding: 20px 16px;
}

.v4d .page-next-step {
  padding: 48px var(--page-right) 48px var(--page-left);
}

.v4d .page-next-step .section-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.v4d .page-next-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 24px);
  text-wrap: balance;
}

.v4d .page-next-step .text-link {
  flex-shrink: 0;
  min-height: 44px;
}

.v4d .systems-case {
  grid-template-rows: 1fr auto;
}

.v4d .systems-case-copy .page-kicker {
  font-size: 11px;
  margin-bottom: 16px;
}

.v4d .systems-case-copy h3 {
  text-wrap: balance;
}

.v4d .systems-case-preview {
  min-width: 0;
  border-top: 1px solid var(--line);
}

.v4d .systems-case-preview summary {
  min-height: 44px;
  padding: 12px 24px;
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
}

.v4d .systems-case-preview summary::marker {
  color: var(--signal);
}

.v4d .systems-case-preview summary:is(:hover, :focus-visible) {
  color: var(--ink);
}

.v4d .systems-case-preview summary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: -4px;
}

.v4d .systems-case-media {
  border-bottom: 0;
}

.v4d .systems-interface-crop {
  display: block;
  width: min(70%, 390px);
  height: clamp(148px, 13vw, 184px);
  min-width: 0;
  max-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(242, 240, 233, 0.18);
  transition: filter 280ms ease, transform 520ms var(--ease);
}

.v4d .systems-case-media--ineed img {
  object-position: 50% 72%;
}

@media (hover: hover) and (pointer: fine) {
  .v4d .systems-interface-crop {
    filter: grayscale(1) saturate(0);
  }

  .v4d .systems-case:is(:hover, :focus-within) .systems-interface-crop {
    filter: grayscale(0) saturate(1);
    transform: scale(1.01);
  }
}

.v4d .systems-method {
  padding-top: 64px;
  padding-bottom: 64px;
}

.v4d .systems-approach-title {
  font-size: clamp(28px, 3vw, 42px);
}

.v4d .systems-principle {
  min-height: 220px;
  padding: 24px;
  gap: 32px;
}

.v4d .systems-principle em {
  font-size: 11px;
  color: var(--ink-soft);
}

.v4d .systems-principle h3 {
  font-size: 28px;
}

.v4d .contact-entry {
  padding-top: 64px;
  padding-bottom: 64px;
}

.v4d .contact-layout {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  grid-template-areas: "heading form" "topics form";
  column-gap: clamp(40px, 7vw, 112px);
  row-gap: 32px;
  align-items: start;
}

.v4d .contact-heading { grid-area: heading; }
.v4d .contact-topics { grid-area: topics; }
.v4d .contact-form { grid-area: form; }

.v4d .contact-heading .page-intro {
  margin-top: 24px;
  font-size: 17px;
}

.v4d .contact-options {
  margin-top: 0;
}

.v4d .preview-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.v4d .contact-form label span,
.v4d .form-note {
  font-size: 14px;
}

.v4d .contact-form .consent-field {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.v4d .contact-form .consent-field input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--signal);
}

.v4d .contact-form .consent-field span {
  line-height: 1.65;
}

.v4d .contact-form .consent-field a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

@media (max-width: 900px) {
  .v4d .systems-interface-crop {
    width: min(66%, 390px);
    height: min(82%, 184px);
  }

  .v4d .compact-page-hero {
    padding-block: 32px;
  }

  .v4d .compact-page-hero .page-hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .v4d .compact-page-hero .page-intro {
    max-width: 44em;
    font-size: 16px;
  }

  .v4d .detail-case {
    grid-template-columns: 1fr;
    grid-template-areas: "introduction" "poster" "information";
    gap: 28px;
  }

  .v4d .detail-poster {
    max-height: 60svh;
  }

  .v4d .detail-poster img {
    max-height: 60svh;
  }

  .v4d .contact-entry {
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .v4d .contact-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "heading" "form" "topics";
    gap: 36px;
  }

  .v4d .contact-heading .page-intro {
    max-width: 34em;
    margin-top: 16px;
  }

  .v4d .contact-topics {
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .v4d .systems-interface-crop {
    width: min(72%, 300px);
    height: 148px;
  }

  .v4d .compact-page-hero .page-kicker {
    margin-bottom: 12px;
  }

  .v4d .case-deck-section,
  .v4d .systems-cases {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .v4d .detail-dialog__content {
    padding: 76px 20px 32px;
  }

  .v4d .detail-copy h2 {
    font-size: clamp(24px, 6.4vw, 32px);
  }

  .v4d .detail-copy h2 span {
    font-size: 24px;
  }

  .v4d .detail-thesis {
    font-size: 16px;
    margin-top: 16px;
  }

  .v4d .detail-meta div,
  .v4d .detail-points > div {
    padding-inline: 0;
  }

  .v4d .page-next-step .section-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .v4d .systems-method {
    padding-block: 40px;
  }

  .v4d .systems-principle,
  .v4d .systems-principle:last-child {
    min-height: 0;
    gap: 16px;
    padding: 24px 0;
  }

  .v4d .contact-form {
    gap: 20px;
  }

  .v4d .contact-options div {
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 14px;
  }
}
