/*
 * Single article (article.html, js/custom/article.js). Same layout as the case page:
 * title left, lead + meta right; each section has a sticky heading on columns 1-4
 * and its text and images on columns 5-12 of the 12-column grid (css/custom/grid.css).
 * After the article: orange glow → white "More articles" → glow back to dark
 * (glows in css/custom/case.css, animated by js/custom/glow.js). Cards: blog.css.
 */
.post { background: #080808; color: #fff; padding: 9.5rem 0 calc(var(--pull-room-dark, 42vh) + 3rem); } /* empty room at the end for the light */
.post-crumbs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}
.post-crumbs a { color: #fff; text-decoration: none; }
.post-crumbs a:hover { color: rgba(255, 255, 255, 0.7); }

.post-head { align-items: end; row-gap: 1.25rem; margin-bottom: 2.5rem; }
.post-head-main { grid-column: 1 / span 8; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.post-title { font-size: clamp(1.125rem, 1.4vw, 1.375rem); line-height: 1.15; color: #fff; }
.post-meta { color: rgba(255, 255, 255, 0.4); }
.post-head-side { grid-column: 9 / -1; display: flex; justify-content: flex-end; min-width: 0; }
.post-head-side .blog-meta { justify-content: flex-end; flex-wrap: wrap; }
.post-lead { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 1rem; line-height: 1.45; }

.post-cover { margin: 0 0 4rem; overflow: hidden; background: #161618; aspect-ratio: 16 / 9; }
.post-cover img, .post-cover video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Project gallery: two columns, every image at its own shape (never cropped). */
.post-gallery { columns: 2; column-gap: 1rem; margin-top: 1.5rem; }
.post-gallery img { display: block; width: 100%; height: auto; margin: 0 0 1rem; break-inside: avoid; background: #161618; }
@media (max-width: 767px) { .post-gallery { columns: 1; } }

/* Body: sticky contact block on columns 1-4, text and images on 5-12 */
.post-layout { align-items: start; row-gap: 3rem; }
.post-aside { grid-column: 1 / span 3; position: sticky; top: 6.5rem; display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }
.post-aside-title { margin: 0; font-family: "Type Juice Unison Pro", Arial, sans-serif; font-size: 1.125rem; line-height: 1.1; text-transform: uppercase; color: #fff; }
.post-aside-text { margin: 0; font-size: 0.875rem; line-height: 1.45; color: rgba(255, 255, 255, 0.65); }
.post-contact-row { display: flex; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.post-contact-row:focus-within { border-bottom-color: #fff; }
.post-contact input { flex: 1; min-width: 0; padding: 0.75rem 0; border: 0; background: none; color: #fff; font: 500 0.9375rem Thicccboi, Arial, sans-serif; outline: none; }
.post-contact input::placeholder { color: rgba(255, 255, 255, 0.4); }
.post-contact button { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border: 0; background: #fff; cursor: pointer; }
.post-contact button img { width: 0.75rem; height: 0.75rem; }
.post-contact button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.post-contact-note { margin: 0.4rem 0 0; min-height: 1.1em; font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); }
.post-aside-mail { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.post-aside-mail:hover { color: rgba(255, 255, 255, 0.7); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.post-body {
  grid-column: 5 / -1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}
.post-sec > * + * { margin-top: 1.1rem; }
.post-sec > p, .post-sec > ul, .post-sec > .post-h2, .post-sec > .post-h3, .post-sec > .post-quote { max-width: 42rem; }
.post-sec p { margin-bottom: 0; }
.post-sec a:not(.button-white) { color: #fff; text-decoration: underline; text-underline-offset: 0.18em; }
.post-sec strong { color: #fff; }
.post-h2 {
  margin: 0;
  font-family: "Type Juice Unison Pro", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
}
.post-h3 { margin: 2rem 0 0; font-size: 1.1875rem; font-weight: 600; color: #fff; }
.post-sec ul { margin-bottom: 0; padding-left: 1.2rem; }
.post-sec li + li { margin-top: 0.35rem; }
/* Images fill the content columns (5-12) at their own shape, never cropped. */
.post-figure { margin: 2rem 0 0; }
.post-sec > .post-figure:first-child { margin-top: 0; }
.post-figure img { display: block; width: 100%; height: auto; background: #161618; }
.post-figure figcaption { margin-top: 0.75rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.55); }
.post-quote { margin: 2.5rem 0 0; padding: 0 0 0 1.5rem; border-left: 2px solid rgba(255, 255, 255, 0.4); }
.post-quote p { font-size: 1.125rem; line-height: 1.4; color: #fff; }
.post-quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}
.post-sec > .post-case { display: inline-flex; margin-top: 2.5rem; }

/* Second half of the article, on white (between the two pulled-light dividers) */
.post-light { position: relative; z-index: 2; background: #fff; color: #080808; padding: 1rem 0 calc(var(--pull-room-light, 45vh) + 2rem); } /* empty room at the end for the dark */
/* The contact block on white */
.post-aside--light .post-aside-title, .post-aside--light .post-aside-mail { color: #080808; }
.post-aside--light .post-aside-text, .post-aside--light .post-contact-note { color: rgba(8, 8, 8, 0.6); }
.post-aside--light .post-contact-row { border-bottom-color: rgba(8, 8, 8, 0.3); }
.post-aside--light .post-contact-row:focus-within { border-bottom-color: #080808; }
.post-aside--light .post-contact input { color: #080808; }
.post-aside--light .post-contact input::placeholder { color: rgba(8, 8, 8, 0.45); }
.post-aside--light .post-contact button { background: #080808; }
.post-aside--light .post-contact button img { filter: invert(1); }
.post-body--light { color: rgba(8, 8, 8, 0.82); }
.post-body--light .post-h2, .post-body--light .post-h3, .post-body--light strong { color: #080808; }
.post-body--light .post-sec a:not(.button-white) { color: #080808; }
.post-body--light .post-figure figcaption { color: rgba(8, 8, 8, 0.55); }
.post-body--light .post-quote { border-left-color: rgba(8, 8, 8, 0.35); }
.post-body--light .post-quote p { color: #080808; }
.post-body--light .post-quote cite { color: rgba(8, 8, 8, 0.55); }
.post-body--light .post-figure img, .post-body--light .post-gallery img { background: #efefef; }
.post-body--light .post-case { background-color: #080808; color: #fff; }
.post-body--light .post-case .icon-1 { filter: invert(1); }
.post-no-light .pull-divider, .post-no-light .post-light { display: none; }

/* More articles, on dark after the light */
.post-more { background: #080808; color: #fff; padding: 2rem 0 6rem; }
.post-more-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 3rem; }
.post-more-head .case-h2 { color: #fff; }

/* Dark version of the white button, for light sections */
.button-white.button-dark { background-color: #080808; color: #fff; }
.button-white.button-dark .icon-1 { filter: invert(1); }

@media (max-width: 991px) {
  .post-aside { grid-column: 1 / span 4; }
  .post-head-main { grid-column: 1 / -1; }
  .post-head-side { grid-column: 1 / span 8; }
}
@media (max-width: 767px) {
  .post { padding: 7.5rem 0 4rem; }
  .post-crumbs { margin-bottom: 1.75rem; }
  .post-head { margin-bottom: 2rem; }
  .post-head-side { grid-column: 1 / -1; }
  .post-cover { margin-bottom: 3.5rem; aspect-ratio: 4 / 3; }
  .post-body { grid-column: 1 / -1; order: 1; gap: 2.5rem; font-size: 0.9375rem; }
  .post-aside { grid-column: 1 / -1; order: 2; position: static; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .post-more { padding: 1.5rem 0 4rem; }
  .post-more-head { flex-direction: column; align-items: flex-start; margin-bottom: 2rem; }
}

/* Process roadmap: numbered steps on a vertical line */
.post-roadmap { position: relative; display: flex; flex-direction: column; gap: 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; max-width: 42rem; }
.post-roadmap::before { content: ""; position: absolute; left: 1.05rem; top: 0.5rem; bottom: 0.5rem; width: 1px; background: currentColor; opacity: 0.2; }
.post-roadmap li { position: relative; display: grid; grid-template-columns: 2.1rem 1fr; column-gap: 1.25rem; row-gap: 0.35rem; }
.post-roadmap .rm-n { grid-row: span 2; position: relative; z-index: 1; align-self: start; text-align: center; padding: 0.45rem 0 0.35rem; background: #ff8a3d; color: #080808; font-size: 0.75rem; font-weight: 700; }
.post-roadmap .rm-t { font-family: "Type Juice Unison Pro", Arial, sans-serif; font-size: 1rem; line-height: 1.1; text-transform: uppercase; padding-top: 0.35rem; }
.post-roadmap .rm-d { font-size: 0.9375rem; line-height: 1.4; opacity: 0.75; }
.post-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.post-copy .button-white { border: 0; cursor: pointer; font-family: inherit; }
.post-copy-note { min-height: 1.1em; font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); }
.post-aside--light .post-copy .button-white { background: #080808; color: #fff; }
.post-aside--light .post-copy .icon-1 { filter: invert(1); }
.post-aside--light .post-copy-note { color: rgba(8, 8, 8, 0.6); }
