/* WordPress portfolio — shared Devexa tokens, scoped page components. */
.wp-nav { display: flex; gap: clamp(16px, 3vw, 40px); font-size: 14px; }
.wp-nav a { padding-block: 12px; }
.wp-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.wp-intro { padding-block: 80px 72px; }
.wp-intro__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 70px; align-items: center; }
.wp-intro h1 { font-size: clamp(56px, 6.4vw, 92px); line-height: 1; letter-spacing: -.055em; font-weight: 500; margin-block: 28px; }
.wp-intro__period { color: #df6960; }
.wp-intro__headline { font-size: clamp(30px, 3vw, 43px); line-height: 1.1; margin-bottom: 32px; }
.wp-intro__copy > p:not(.eyebrow):not(.wp-intro__headline) { max-width: 600px; color: var(--night-muted); margin-bottom: 18px; }
.wp-intro__copy > .link-arrow { margin-top: 24px; }
.wp-portrait { align-self: start; padding-top: 10px; }
.wp-portrait img { width: 100%; height: auto; }
.wp-portrait figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--night-rule); font: 10px/1.6 var(--font-mono); letter-spacing: .05em; color: var(--night-muted); }
.wp-intro__note { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; margin-top: 72px; padding-top: 40px; position: relative; }
.wp-intro__note::before { content: ''; position: absolute; top: 0; left: var(--container-pad); right: var(--container-pad); border-top: 1px solid var(--night-rule); }
.wp-intro__note p { max-width: 760px; }
.wp-work, .wp-method, .wp-contact { padding-block: var(--space-8); }
.wp-section-heading { max-width: 800px; margin-bottom: 80px; }
.wp-section-heading h2, .wp-contact h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: var(--ls-h2); font-weight: 500; margin-block: 24px 28px; }
.wp-section-heading > p:not(.eyebrow) { max-width: 660px; margin-top: 20px; color: var(--local-muted); }
.wp-timeline { position: relative; margin-left: 14px; border-left: 1px solid #aaa69c; }
.wp-timeline__item { padding-left: 56px; padding-bottom: 96px; position: relative; }
.wp-timeline__item:last-child { padding-bottom: 0; }
.wp-timeline__item::before { content: ''; position: absolute; width: 13px; height: 13px; border: 2px solid var(--editorial-red); border-radius: 50%; background: var(--paper); left: -7px; top: 9px; }
.wp-timeline article { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 45px; }
.wp-project-meta { display: flex; flex-direction: column; gap: 22px; align-items: start; }
.wp-project-number { font: 48px/1 var(--font-display); color: var(--muted); }
.wp-project-meta .eyebrow { max-width: 180px; line-height: 1.7; }
.wp-project-body { max-width: 720px; }
.wp-project-body h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -.035em; font-weight: 500; margin-bottom: 24px; }
.wp-project-lead { color: var(--ink-soft); }
.wp-flow { display: flex; flex-wrap: wrap; gap: 8px 0; margin-block: 28px; font: 12px/1.6 var(--font-mono); color: var(--ink-soft); }
.wp-flow li:not(:last-child)::after { content: '→'; padding-inline: 12px; color: var(--editorial-red); }
.wp-details { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.wp-details summary { cursor: pointer; padding: 18px 0; font-size: 15px; font-weight: 500; }
.wp-details summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.wp-details summary:focus-visible { outline: 2px solid var(--editorial-red); outline-offset: 4px; }
.wp-details > div { padding-bottom: 22px; color: var(--ink-soft); }
.wp-details p + p { margin-top: 18px; }
.wp-result { border-left: 2px solid var(--editorial-red); padding-left: 20px; margin-block: 28px 22px; }
.wp-result .eyebrow { margin-bottom: 10px; }
.wp-result > p:last-child { font-size: 17px; color: var(--ink-soft); }
.wp-stack { font: 11px/1.8 var(--font-mono); color: var(--muted); }
.wp-method-list > li, .wp-course { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; border-top: 1px solid var(--night-rule); padding-block: 34px; }
.wp-method-list h3, .wp-course h3 { font-size: 26px; line-height: 1.2; font-weight: 500; margin-bottom: 18px; letter-spacing: -.02em; }
.wp-method-list p, .wp-course p:not(.eyebrow) { max-width: 700px; color: var(--night-muted); }
.wp-course { margin-top: 40px; }
.wp-course p + p { margin-top: 16px; }
.wp-contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.wp-contact__grid > div > p:not(.eyebrow) { color: var(--ink-soft); margin-bottom: 22px; }
.wp-contact__availability { font: 12px/1.6 var(--font-mono); padding-top: 20px; }
.wp-email { display: inline-block; font-size: clamp(16px, 1.7vw, 23px); border-bottom: 1px solid var(--editorial-red); padding-block: 6px; overflow-wrap: anywhere; }
.wp-email span { color: var(--editorial-red); }
.wp-signature { margin-top: 22px; font-size: 15px; }
.wp-back { font: 12px/1.5 var(--font-mono); padding-block: 14px; }
section[id], article[id] { scroll-margin-top: 100px; }
@media (max-width: 1023px) {
  .wp-intro__grid { gap: 36px; }
  .wp-timeline article { grid-template-columns: 150px minmax(0, 1fr); gap: 24px; }
  .wp-timeline__item { padding-left: 32px; }
  .wp-contact__grid { gap: 36px; }
}
@media (max-width: 767px) {
  .wp-nav { gap: 14px; font-size: 12px; }
  .wp-intro { padding-top: 44px; }
  .wp-intro__grid, .wp-intro__note, .wp-contact__grid { grid-template-columns: 1fr; gap: 32px; }
  .wp-portrait { max-width: 440px; width: 100%; margin-inline: auto; }
  .wp-intro__note { margin-top: 48px; }
  .wp-section-heading { margin-bottom: 48px; }
  .wp-timeline { margin-left: 6px; }
  .wp-timeline article { grid-template-columns: 1fr; gap: 20px; }
  .wp-project-meta { flex-direction: row; gap: 20px; align-items: center; }
  .wp-project-number { font-size: 32px; }
  .wp-project-meta .eyebrow { max-width: none; }
  .wp-timeline__item { padding-left: 24px; padding-bottom: 64px; }
  .wp-method-list > li, .wp-course { grid-template-columns: 1fr; gap: 20px; }
  .wp-contact h2 { margin-bottom: 0; }
}
@media (max-width: 374px) {
  .wp-nav { gap: 10px; font-size: 11px; }
  .wp-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .wp-intro h1 { font-size: 50px; }
}
/* Keep navigation readable during the shared header's theme transition. */
.wp-nav { color: var(--local-text); }

/* Course certificate — responsive image with access to the original. */
.wp-course__certificate { margin-top: 28px; max-width: 700px; }
.wp-course__certificate a { display: block; }
.wp-course__certificate img { width: 100%; height: auto; }
.wp-course__certificate figcaption { margin-top: 12px; color: var(--night-muted); font: 12px/1.6 var(--font-mono); }

.wp-course__disclosure { margin-top: 24px; }
.wp-course__disclosure > summary { cursor: pointer; width: fit-content; padding-block: 10px; text-decoration: underline; text-underline-offset: 5px; font-size: 16px; }
.wp-course__disclosure > summary:focus-visible { outline: 2px solid var(--editorial-red); outline-offset: 4px; }
.wp-course__disclosure .wp-course__certificate { margin-top: 16px; }

/* School map case study — long-form content inside the first disclosure. */
.wp-project-body { min-width: 0; }
.wp-map-study { min-width: 0; }
.wp-map-study__intro { padding-block: 20px 8px; }
.wp-map-study h4 { font-size: clamp(25px, 2.5vw, 34px); line-height: 1.15; letter-spacing: -.025em; font-weight: 500; margin-block: 16px; }
.wp-map-study__intro .wp-stack { margin-block: 16px 24px; }
.wp-map-study__note { padding-left: 16px; border-left: 2px solid var(--rule); font-size: 15px; }
.wp-map-study section { padding-top: 40px; }
.wp-map-study h5 { margin: 0 0 20px; font-size: 23px; line-height: 1.3; font-weight: 500; letter-spacing: -.02em; }
.wp-map-study h5 > span { display: block; margin-bottom: 10px; color: var(--muted); font: 12px/1.5 var(--font-mono); }
.wp-map-study ul { padding-left: 22px; list-style: disc; }
.wp-map-study li + li { margin-top: 10px; }
.wp-map-study p code { font: .85em var(--font-mono); overflow-wrap: anywhere; }
.wp-code { min-width: 0; max-width: 100%; margin-block: 24px; border: 1px solid var(--rule); background: var(--paper-light); }
.wp-code .wp-code__label { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--rule); color: var(--muted); font: 11px/1.5 var(--font-mono); }
.wp-code pre { margin: 0; max-width: 100%; padding: 18px; overflow-x: auto; color: var(--ink-soft); font: 12px/1.8 var(--font-mono); tab-size: 4; }
.wp-code pre:focus-visible { outline: 2px solid var(--editorial-red); outline-offset: 2px; }
.wp-map-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0 0; }
.wp-map-metrics > div { display: flex; flex-direction: column-reverse; gap: 10px; }
.wp-map-metrics dt { color: var(--muted); font: 11px/1.6 var(--font-mono); }
.wp-map-metrics dd { margin: 0; font-size: 42px; line-height: 1; letter-spacing: -.04em; }
@media (max-width: 767px) {
  .wp-map-study h5 { font-size: 21px; }
  .wp-code pre { padding: 14px; }
  .wp-map-metrics { gap: 12px; }
  .wp-map-metrics dd { font-size: 32px; }
}
.wp-map-article-link { margin-block: 24px; }
.wp-map-article-link .link-arrow { font-size: 12px; }
