/* Looking Back content styles, scoped for the existing doex WordPress theme. */
.looking-back-page [hidden] { display: none !important; }
html:has(body.doex-looking-back).dialog-open { overflow: hidden; }
.looking-back-page .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.looking-back-page .lookingback-hero .hero-shade { background: linear-gradient(90deg, #0a0a0afa 0, #0a0a0aba 29%, #0a0a0a10 65%), linear-gradient(0deg, #0a0a0a 0, #0a0a0a00 32%, #0a0a0a10 75%, #0a0a0a55); }
.looking-back-page .lookingback-hero .hero-copy { max-width: 650px; }
.looking-back-page .hero-motion { position: absolute; right: var(--edge); bottom: 47px; width: 38px; height: 38px; background: #1119; backdrop-filter: blur(12px); border-color: #ffffff36; }
.looking-back-page .hero-motion .icon { width: 17px; height: 17px; }
.looking-back-page .video-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 0 14px; }
.looking-back-page .video-tabs { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); background: #111; border-radius: 8px; }
.looking-back-page .video-tabs button { background: none; color: #999; border-radius: 5px; padding: 7px 16px; font-size: 12px; font-weight: 450; transition: color .16s, background .16s; }
.looking-back-page .video-tabs button[aria-selected="true"] { background: #282828; box-shadow: 0 1px 2px #0003; color: #eee; }
.looking-back-page .video-tabs button:hover { color: #fff; }
.looking-back-page #video-duration { font-size: 12px; color: #888; font-variant-numeric: tabular-nums; padding-right: 2px; }
.looking-back-page .local-player > video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0b0b0b; }
.looking-back-page .local-player:focus-within { outline: 1px solid #a3a3a3; outline-offset: 3px; }
.looking-back-page .video-overlay { z-index: 2; }
.looking-back-page .video-overlay .trailer-vignette { background: linear-gradient(0deg, #0006, #00000012 55%, #0002); }
.looking-back-page .video-error { color: #bbb; font-size: 12px; margin-top: 12px; }
.looking-back-page .video-error a { color: #fff; text-decoration: underline; }
.looking-back-page .gallery-stage { aspect-ratio: 16 / 9; background: #959ba6; }
.looking-back-page .gallery-stage > img { object-fit: contain; object-position: center; }
.looking-back-page .gallery-thumbnails { justify-content: center; }
.looking-back-page .gallery-thumbnails button { flex: 1 1 175px; max-width: 240px; }
.looking-back-page .future-section { display: grid; grid-template-columns: 1.1fr .7fr; gap: clamp(45px, 7vw, 115px); align-items: center; padding-top: 57px; margin-top: 52px; border-top: 1px solid var(--line); }
.looking-back-page .feature-icon { width: 30px; height: 30px; color: #8a8a8a; margin-bottom: 22px; stroke-width: 1.25; }
.looking-back-page .future-copy h3 { font-size: clamp(34px, 3.5vw, 52px); margin-bottom: 23px; }
.looking-back-page .future-copy > p { max-width: 505px; font-size: 16px; line-height: 1.8; }
.looking-back-page .resource-row { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 30px; }
.looking-back-page .resource-row > span { display: flex; align-items: center; gap: 8px; color: #bbb; font-size: 12px; }
.looking-back-page .resource-row .icon { width: 18px; height: 18px; color: #888; }
.looking-back-page .future-figure { width: 100%; max-width: 348px; justify-self: center; }
.looking-back-page .future-figure .image-surface { border: 1px solid #ffffff25; aspect-ratio: 899 / 988; }
.looking-back-page .detail-figure > figcaption { color: #929292; font-size: 12px; line-height: 1.65; margin-top: 13px; }
.looking-back-page .future-figure > figcaption { max-width: 300px; }
.looking-back-page .process-card > .image-surface { aspect-ratio: 1.55; border: 1px solid #ffffff12; background: #151515; }
.looking-back-page .process-card > .image-surface img { object-fit: contain; }
.looking-back-page .collaboration-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 35px; }
.looking-back-page .collaboration-photos .image-surface { aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.looking-back-page .collaboration-photos .image-surface > img { object-fit: cover; }
.looking-back-page .lookingback-iterations { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.looking-back-page .lookingback-iterations .detail-image { aspect-ratio: 1.6; background: #161616; }
.looking-back-page .lookingback-iterations .detail-image > img { object-fit: contain; }
.looking-back-page .detail-article > h3 { display: flex; gap: 14px; align-items: center; }
.looking-back-page .marching-article .detail-body { max-width: 93ch; }
.looking-back-page .marching-diagram { margin-top: 33px; border-color: #ffffff42; }
.looking-back-page .marching-diagram picture { aspect-ratio: 1200 / 420; }
.looking-back-page .system-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px; margin: 28px 0 37px; }
.looking-back-page .system-notes > div { padding-right: 15px; }
.looking-back-page .system-notes > div + div { padding-left: 30px; border-left: 1px solid var(--line); }
.looking-back-page .system-notes .icon { width: 23px; height: 23px; color: #8b8b8b; margin-bottom: 14px; }
.looking-back-page .system-notes h4 { font-size: 16px; line-height: 1.45; font-weight: 500; letter-spacing: -.02em; margin-bottom: 8px; }
.looking-back-page .system-notes p { font-size: 13px; line-height: 1.75; max-width: 310px; }
.looking-back-page .technical-media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.looking-back-page .technical-media-grid .detail-image { aspect-ratio: 1.62; border: 1px solid #ffffff20; }
.looking-back-page .technical-media-grid .detail-image > img { object-fit: contain; }
.looking-back-page .feature-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.looking-back-page .feature-copy h3 { font-size: clamp(29px, 3.1vw, 43px); margin-bottom: 23px; }
.looking-back-page .feature-copy > p { font-size: 15px; line-height: 1.8; margin-bottom: 14px; max-width: 440px; }
.looking-back-page .feature-media { min-width: 0; }
.looking-back-page .feature-media .detail-image { border: 1px solid #ffffff20; }
.looking-back-page .feature-media .detail-image > img { height: auto; }
.looking-back-page .save-flow { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 24px; max-width: 410px; }
.looking-back-page .save-flow > span { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; font-size: 11px; color: #b8b8b8; }
.looking-back-page .save-flow > span > .icon { width: 21px; height: 21px; }
.looking-back-page .save-flow > .icon { width: 16px; height: 16px; color: #626262; }
.looking-back-page .article-heading-inline { display: flex; align-items: flex-start; justify-content: space-between; gap: 60px; }
.looking-back-page .article-heading-inline h3 { display: flex; align-items: center; gap: 14px; }
.looking-back-page .article-heading-inline > p { max-width: 360px; font-size: 14px; line-height: 1.8; }
.looking-back-page .mode-list { list-style: none; padding: 0; margin: 30px 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 9px; }
.looking-back-page .mode-list li { display: flex; align-items: center; gap: 13px; font-size: 14px; color: #d0d0d0; padding: 20px; }
.looking-back-page .mode-list li + li { border-left: 1px solid var(--line); }
.looking-back-page .mode-list .icon { color: #929292; width: 21px; height: 21px; }
.looking-back-page .modes-image .detail-image { aspect-ratio: 2560 / 897; border: 1px solid var(--line); }
.looking-back-page .audio-wave { width: 100%; max-width: 290px; height: 80px; color: #7f8d80; opacity: .75; margin-top: 29px; }
.looking-back-page .lookingback-credits { display: grid; grid-template-columns: 1.35fr 1fr; gap: 60px; }
.looking-back-page .lookingback-credits h4 { font-size: 15px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 11px; }
.looking-back-page .lookingback-credits p { font-size: 14px; line-height: 1.9; }
.looking-back-page .lookingback-credits .credit-role { font-size: 12px; color: #818181; margin-top: 15px; }
.looking-back-page .project-book { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 28px 0 4px; margin-top: 33px; border-top: 1px solid var(--line); }
.looking-back-page .book-description { display: flex; align-items: center; gap: 20px; }
.looking-back-page .book-description > .icon { color: #8e8e8e; width: 30px; height: 30px; }
.looking-back-page .book-description h4 { font-size: 18px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 5px; }
.looking-back-page .book-description p { font-size: 13px; line-height: 1.7; }
.looking-back-page .book-link { display: inline-flex; align-items: center; gap: 20px; white-space: nowrap; font-size: 13px; color: #d4d4d4; border: 1px solid #ffffff30; border-radius: 8px; padding: 12px 17px; transition: background .16s, border-color .16s; }
.looking-back-page .book-link:hover { background: #202020; border-color: #ffffff66; }
.looking-back-page .book-link .icon { width: 18px; height: 18px; }

@media (max-width: 1150px) {
  .looking-back-page .feature-split { gap: 36px; }
  .looking-back-page .system-notes { gap: 20px; }
  .looking-back-page .system-notes > div + div { padding-left: 22px; }
  .looking-back-page .mode-list li { padding: 17px; gap: 9px; font-size: 13px; }
  .looking-back-page .resource-row { gap: 18px; }
  .looking-back-page .article-heading-inline { gap: 30px; }
  .looking-back-page .article-heading-inline > p { max-width: 300px; }
}
@media (max-width: 850px) {
  .looking-back-page .future-section { gap: 38px; grid-template-columns: 1fr .8fr; }
  .looking-back-page .future-copy h3 { font-size: 35px; }
  .looking-back-page .future-copy > p { font-size: 14px; }
  .looking-back-page .resource-row { gap: 15px; margin-top: 23px; }
  .looking-back-page .feature-split { grid-template-columns: 1fr; gap: 28px; }
  .looking-back-page .feature-copy { max-width: 660px; }
  .looking-back-page .feature-copy > p { max-width: 630px; }
  .looking-back-page .feature-copy h3 { font-size: 35px; }
  .looking-back-page .feature-copy .save-flow { max-width: 350px; }
  .looking-back-page .article-heading-inline { display: block; }
  .looking-back-page .article-heading-inline > p { max-width: 610px; margin-top: 17px; }
  .looking-back-page .technical-media-grid { gap: 22px; }
  .looking-back-page .lookingback-credits { gap: 40px; }
  .looking-back-page .book-description > .icon { display: none; }
}
@media (max-width: 650px) {
  .looking-back-page .lookingback-hero .hero-video { height: 100%; width: 160%; left: -50%; object-position: center; }
  .looking-back-page .lookingback-hero .hero-shade { background: linear-gradient(180deg, #0a0a0abb 0, #0a0a0a95 32%, #0a0a0a15 65%, #0a0a0ab8), linear-gradient(90deg, #0a0a0a88, transparent 100%); }
  .looking-back-page .hero-motion { bottom: 40px; width: 34px; height: 34px; }
  .looking-back-page .video-heading { padding-bottom: 11px; }
  .looking-back-page .video-tabs button { padding: 7px 13px; }
  .looking-back-page .gallery-stage { aspect-ratio: 16 / 9; }
  .looking-back-page .gallery-caption { font-size: 11px; gap: 14px; }
  .looking-back-page .gallery-controls { gap: 10px; }
  .looking-back-page .gallery-thumbnails { gap: 8px; }
  .looking-back-page .gallery-thumbnails button { flex: 1 1 75px; min-width: 58px; max-width: none; }
  .looking-back-page .gallery-controls .round-button { width: 34px; height: 34px; border-radius: 8px; }
  .looking-back-page .gallery-controls .round-button .icon { width: 18px; height: 18px; }
  .looking-back-page .future-section { grid-template-columns: 1fr; gap: 28px; padding-top: 34px; margin-top: 35px; }
  .looking-back-page .feature-icon { width: 25px; height: 25px; margin-bottom: 16px; }
  .looking-back-page .future-copy h3 { font-size: 34px; margin-bottom: 18px; }
  .looking-back-page .future-copy > p { font-size: 15px; }
  .looking-back-page .future-figure { max-width: 350px; }
  .looking-back-page .resource-row { column-gap: 22px; row-gap: 13px; }
  .looking-back-page .resource-row > span { font-size: 12px; }
  .looking-back-page .process-card > .image-surface { aspect-ratio: 1.35; }
  .looking-back-page .collaboration-photos { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .looking-back-page .lookingback-iterations { grid-template-columns: 1fr; gap: 23px; }
  .looking-back-page .lookingback-iterations .detail-image { aspect-ratio: 1.6; }
  .looking-back-page .development-studies { margin-top: 26px; }
  .looking-back-page .technical-section { padding-bottom: 0; }
  .looking-back-page .detail-article { padding-block: 35px; }
  .looking-back-page .detail-article > h3 { font-size: 27px; align-items: flex-start; gap: 11px; }
  .looking-back-page .detail-heading-icon { width: 22px; height: 22px; margin-top: 4px; }
  .looking-back-page .marching-diagram { margin-top: 25px; }
  .looking-back-page .marching-diagram picture { aspect-ratio: 560 / 820; }
  .looking-back-page .system-notes { grid-template-columns: 1fr; margin-block: 23px 30px; gap: 20px; }
  .looking-back-page .system-notes > div, .looking-back-page .system-notes > div + div { display: grid; grid-template-columns: 24px 1fr; gap: 4px 14px; padding: 0; border: 0; }
  .looking-back-page .system-notes .icon { grid-row: 1 / 3; width: 21px; margin-top: 2px; }
  .looking-back-page .system-notes h4 { font-size: 15px; margin-bottom: 0; }
  .looking-back-page .system-notes p { grid-column: 2; max-width: none; font-size: 13px; }
  .looking-back-page .technical-media-grid { grid-template-columns: 1fr; gap: 24px; }
  .looking-back-page .technical-media-grid .detail-image { aspect-ratio: auto; }
  .looking-back-page .technical-media-grid .detail-image img { height: auto; }
  .looking-back-page .feature-copy h3 { font-size: 32px; }
  .looking-back-page .feature-copy > p { font-size: 15px; }
  .looking-back-page .feature-split { gap: 26px; }
  .looking-back-page .mode-list { grid-template-columns: 1fr 1fr; margin-block: 23px; }
  .looking-back-page .mode-list li { padding: 15px 12px; }
  .looking-back-page .mode-list li:nth-child(3) { border-left: 0; }
  .looking-back-page .mode-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .looking-back-page .article-heading-inline h3 { font-size: 27px; align-items: flex-start; gap: 11px; }
  .looking-back-page .modes-image .detail-image { aspect-ratio: 2560 / 897; }
  .looking-back-page .detail-figure > figcaption { font-size: 11px; margin-top: 10px; }
  .looking-back-page .credits-section { padding-block: 31px 33px; }
  .looking-back-page .lookingback-credits { grid-template-columns: 1fr; gap: 27px; }
  .looking-back-page .lookingback-credits p { font-size: 13px; }
  .looking-back-page .project-book { align-items: flex-start; flex-direction: column; gap: 20px; padding-top: 24px; margin-top: 26px; }
  .looking-back-page .book-description h4 { font-size: 18px; }
  .looking-back-page .book-description p { font-size: 12px; max-width: 320px; }
  .looking-back-page .book-link { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.doex-looking-back) { scroll-behavior: auto; }
  .looking-back-page *, .looking-back-page *::before, .looking-back-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Match the current theme's red context headings and primary technical heading. */
.looking-back-page .project-context h3,
.looking-back-page #marching-heading { color: #dd3333; }
.looking-back-page .future-copy h3,
.looking-back-page .feature-copy h3,
.looking-back-page #modes-heading { color: var(--text); }
