/* Urban work uses the portfolio's shared project dial and page frame. */
.urban-planning .study-intro { margin-bottom: clamp(26px,4vh,44px); }
.urban-planning .project-stack { padding-bottom: 0; }
.urban-planning .urban-card {
  --card: #f2f4ef; --header-fill: #e1e8dc; --secondary: #536052; --rule: #d4ddcf;
  display: block; min-height: 0; padding: 0; border: 0; border-radius: 23px;
  margin-bottom: clamp(35px,6vh,64px); box-shadow: none;
}
.urban-card[data-urban-theme="earth"] { --card: #f5f0e9; --header-fill: #e9dfd1; --secondary: #665c4d; --rule: #dcd1c2; }
.urban-card[data-urban-theme="mobility"] { --card: #eaf1ed; --header-fill: #d4e5dc; --secondary: #4c6256; --rule: #cbdcd0; }
.urban-card[data-urban-theme="commons"] { --card: #edf2f0; --header-fill: #dce9e3; --secondary: #52635c; --rule: #ceded6; }
:root[data-theme="dark"] .urban-planning .urban-card { --card: #252d29; --header-fill: #354238; --secondary: #bdc9bc; --rule: #465648; }
:root[data-theme="dark"] .urban-card[data-urban-theme="earth"] { --card: #302c27; --header-fill: #443b30; --secondary: #d0c5b5; --rule: #5a4d3e; }
:root[data-theme="dark"] .urban-card[data-urban-theme="mobility"] { --card: #142e29; --header-fill: #22483d; --secondary: #bad0c4; --rule: #3c5f50; }
:root[data-theme="dark"] .urban-card[data-urban-theme="commons"] { --card: #1c3031; --header-fill: #2b4747; --secondary: #b8ceca; --rule: #46605d; }
.urban-card-heading { padding: 22px 27px 20px; background: var(--header-fill); }
.urban-location { display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--secondary); font-size: 10px; letter-spacing: .045em; line-height: 1.5; }
.urban-location span:first-child { text-transform: uppercase; }
.urban-card-heading h2 { margin: 9px 0 14px; font-size: clamp(25px,2.5vw,36px); font-weight: 500; line-height: 1.15; letter-spacing: -.055em; }
.urban-card-heading h2 a { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.urban-card-heading h2 svg { flex: none; opacity: .65; }
.urban-card-heading h2 a:hover svg { opacity: 1; }
.urban-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.urban-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.urban-tags span { border: 1px solid var(--rule); border-radius: 30px; padding: 5px 10px; font-size: 10px; line-height: 1.5; }
.urban-year { color: var(--secondary); font-size: 11px; white-space: nowrap; }
.urban-card-body { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: clamp(23px,2.1vw,36px); min-height: 419px; padding: 24px 27px 26px; }
.urban-visual { display: flex; flex-direction: column; margin: 0; min-width: 0; }
.urban-visual > a { display: flex; height: 345px; overflow: hidden; border-radius: 12px; }
.urban-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.urban-card[data-urban-theme="earth"] .urban-visual > a { align-items: center; }
.urban-card[data-urban-theme="earth"] .urban-visual img { object-fit: contain; height: auto; border-radius: 12px; }
.urban-visual-contained > a { align-items: center; }
.urban-visual-contained img { object-fit: contain; min-height: 0; height: 100%; }
.urban-visual figcaption { margin: 10px 0 0; font-size: 9px; line-height: 1.5; color: var(--secondary); }
.urban-card-story { display: flex; flex-direction: column; align-items: start; padding: 5px 0 0; }
.urban-card-story h3 { margin: 0 0 12px; max-width: 23ch; font-size: clamp(20px,1.65vw,25px); line-height: 1.25; font-weight: 450; letter-spacing: -.04em; }
.urban-card-story p { margin: 0; max-width: 48ch; font-size: clamp(12px,.9vw,14px); line-height: 1.65; color: var(--secondary); }
.urban-contribution { margin-top: 20px; }
.urban-contribution h4 { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 7px; }
.urban-project-link { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; padding: 17px 0 0; margin-top: auto; font-size: 11px; }
.urban-project-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.urban-further { display: grid; grid-template-columns: clamp(211px,17.4vw,268px) minmax(0,1fr); gap: clamp(17px,2.1vw,36px); border-top: 1px solid var(--line); padding: 32px 0 65px; margin-top: 40px; }
.urban-further-heading h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.05em; font-weight: 450; margin: 12px 0; }
.urban-further-heading > p:last-child { font-size: 12px; line-height: 1.65; color: var(--body-copy); max-width: 32ch; }
.urban-reading-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.urban-reading-links > a { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 17px; }
.urban-reading-links > a:hover { background: var(--hover-surface); }
.urban-reading-links .eyebrow { font-size: 9px; }
.urban-reading-links h3 { font-size: 23px; font-weight: 450; line-height: 1.2; letter-spacing: -.04em; margin: 16px 0 12px; }
.urban-reading-links p { color: var(--body-copy); font-size: 12px; line-height: 1.6; margin: 0 0 22px; max-width: 47ch; }
.urban-reading-action { display: flex; justify-content: space-between; margin-top: auto; font-size: 11px; }
/* Detail pages keep their existing sources and interactive product previews. */
.urban-detail-heading { padding: 32px 0 29px; }
.urban-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 27px; font-size: 12px; color: var(--body-copy); }
.urban-detail-heading h1 { font-size: clamp(35px,4vw,60px); letter-spacing: -.06em; line-height: 1.08; font-weight: 450; margin: 14px 0 19px; }
.urban-detail-heading > p:last-child { font-size: clamp(14px,1.2vw,17px); line-height: 1.6; color: var(--body-copy); max-width: 64ch; margin: 0; }
.urban-detail-hero { margin: 0 auto; max-width: 1200px; }
.urban-detail-hero img { display: block; width: 100%; height: auto; border-radius: 19px; }
.urban-detail-hero figcaption { margin: 11px 0 0; font-size: 11px; color: var(--muted); }
.urban-project .demo-showcase { padding-inline: 0; }
.urban-project .demo-launch { border-radius: 19px; }
.urban-detail-overview { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); gap: clamp(40px,9vw,140px); padding: 50px 0; border-bottom: 1px solid var(--line); }
.urban-detail-overview dl { margin: 0; }
.urban-detail-overview dl > div { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.6; }
.urban-detail-overview dl > div:first-child { padding-top: 0; }
.urban-detail-overview dt { color: var(--muted); }
.urban-detail-overview dd { margin: 0; }
.urban-detail-story h2 { font-size: clamp(27px,2.4vw,36px); line-height: 1.2; letter-spacing: -.045em; font-weight: 450; margin: 0 0 22px; max-width: 24ch; }
.urban-detail-story p { font-size: 14px; line-height: 1.8; color: var(--body-copy); max-width: 65ch; margin: 0 0 18px; }
.urban-detail-story .links { margin-top: 25px; }
.urban-detail-gallery { padding: 35px 0 0; }
.urban-detail-gallery figure { margin: 0 auto 25px; max-width: 1100px; }
.urban-detail-gallery .image-button { display: block; width: 100%; padding: clamp(16px,2.6vw,36px); border-radius: 17px; border: 0; background: #fff; }
.urban-detail-gallery img { display: block; width: 100%; height: auto; max-height: 940px; object-fit: contain; }
.urban-detail-gallery figcaption,.urban-image-credit { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 12px 0 0; }
.urban-image-credit { max-width: 85ch; margin: 25px 0 0 auto; }
.urban-detail-end { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 25px 0 45px; margin-top: 38px; font-size: 12px; }
.urban-detail-end a { display: inline-flex; align-items: center; gap: 8px; }
@media (min-width:781px) and (max-height:739px) {
  .urban-planning .urban-card { position: relative; top: auto; }
}
@media (max-width:1100px) {
  .urban-planning .urban-card { position: relative; top: auto; }
  .urban-card-heading { padding: 20px; }
  .urban-card-body { grid-template-columns: minmax(0,1fr) minmax(0,1.08fr); padding: 22px 20px; gap: 22px; }
  .urban-visual img { max-height: 365px; }
  .urban-further { grid-template-columns: 1fr; }
  .urban-further-heading > p:last-child { max-width: none; }
}
@media (max-width:780px) {
  .urban-planning .study-intro { display: block; }
  .urban-planning .study-intro > p { margin-top: 16px; max-width: 45ch; }
  .urban-planning .urban-card { border-radius: 18px; padding: 0; margin-bottom: 26px; }
  .urban-card-heading { padding: 19px; }
  .urban-card-heading h2 { font-size: clamp(25px,4.5vw,33px); }
  .urban-location { font-size: 9px; align-items: flex-start; }
  .urban-location span:last-child { text-align: right; }
  .urban-card-body { grid-template-columns: 1fr; gap: 20px; padding: 19px; min-height: 0; }
  .urban-visual > a { min-height: 0; height: auto; }
  .urban-visual img { height: auto; min-height: 0; max-height: none; aspect-ratio: 1.5; object-fit: cover; }
  .urban-visual-contained img { aspect-ratio: auto; object-fit: contain; }
  .urban-card[data-urban-theme="earth"] .urban-visual img { aspect-ratio: auto; }
  .urban-card-story { padding: 0; }
  .urban-card-story h3 { font-size: 23px; max-width: 26ch; }
  .urban-card-story p { font-size: 13px; }
  .urban-project-link { margin-top: 22px; border-top: 1px solid var(--rule); }
  .urban-further { padding-bottom: 35px; margin-top: 15px; }
  .urban-detail-overview { grid-template-columns: 1fr; gap: 35px; padding: 30px 0; }
  .urban-detail-heading { padding-top: 25px; }
  .urban-detail-gallery { padding-top: 26px; }
}
@media (max-width:590px) {
  .urban-card-heading,.urban-card-body { padding: 16px; }
  .urban-card-meta { align-items: flex-start; gap: 10px; }
  .urban-tags { gap: 5px; }
  .urban-tags span { font-size: 9px; padding: 4px 8px; }
  .urban-year { padding-top: 5px; font-size: 10px; }
  .urban-card-heading h2 { font-size: 25px; }
  .urban-card-story h3 { font-size: 22px; }
  .urban-reading-links { grid-template-columns: 1fr; gap: 12px; }
  .urban-reading-links > a { padding: 20px; }
  .urban-detail-overview dl > div { grid-template-columns: 90px minmax(0,1fr); gap: 16px; }
  .urban-detail-end { font-size: 11px; }
}
