/* Project stories: the same portfolio, with room to read and explore. */
.projectPage { background: #11101b; color: #fff; }
.viewing-project footer { display: none; }
.projectPage .background { pointer-events: none; }
.projectPage .background img { object-fit: cover; opacity: .16; }
.projectPage .background::after { background: linear-gradient(110deg, rgba(13,11,24,.86), rgba(13,11,24,.6)); }
.projectPage .slide { position: absolute; inset: 130px 90px 115px 55px; width: auto; height: auto; margin: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ffffff38 transparent; text-align: left; padding-right: 12px; }
.projectPage .slide_content { width: 100%; max-width: 1320px; height: auto; margin: auto; padding: 0; min-width: 0; }
.projectPage .slide_title { text-align: left; text-transform: none; font-size: clamp(27px, 3.1vw, 43px); line-height: 1.3; margin: 0 0 20px; outline: none; overflow-wrap: break-word; }
.projectPage .project-hero .slide_content { max-width: 1320px; padding: 0; }
.projectPage .project-hero .slide_title { text-wrap: balance; }
.projectPage .detail-eyebrow { font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase; color: #b6e7ef; margin-bottom: 12px; }
.projectPage button, .detail-back, .detail-watch { font: inherit; letter-spacing: .4px; color: inherit; }
.detail-explore { border: 0; border-bottom: 1px solid #ffffff70; background: transparent; padding: 10px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 30px; justify-self: start; }
.detail-explore span { color: #ff80b2; transition: transform .25s ease; }
.detail-explore:hover span { transform: translateY(4px); }
.projectPage .slide::-webkit-scrollbar { width: 3px; }
.projectPage .slide::-webkit-scrollbar-thumb { background: #ffffff38; border-radius: 4px; }
.projectPage .slide::-webkit-scrollbar-track { background: transparent; }
.projectPage p, .projectPage li { font-size: 15px; line-height: 1.8; letter-spacing: .15px; color: #cec9d7; }
.projectPage strong { color: #f6f2fb; }
.detail-media-caption { display: block; padding: 11px 14px; font-size: 10px; letter-spacing: 1px; color: #b0a9bb; text-transform: uppercase; }
.detail-video { border: 1px solid #ffffff24; border-radius: 6px; background: #08070d; overflow: hidden; }
.detail-video-screen { aspect-ratio: 16 / 9; }
.projectPage .detail-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; margin: 0; }
.detail-video-poster { width: 100%; height: 100%; position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: #08070d; }
.detail-video-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: opacity .3s ease, transform .6s ease; }
.detail-video-poster:hover img { opacity: .95; transform: scale(1.025); }
.detail-play { position: absolute; inset: 0; display: flex; gap: 12px; align-items: center; justify-content: center; color: #fff; text-shadow: 0 1px 8px #000; }
.detail-play b { width: 46px; height: 46px; border: 1px solid #ffffffa0; border-radius: 50%; display: grid; place-items: center; font-size: 14px; padding-left: 2px; box-sizing: border-box; background: #15102070; }
.detail-video [hidden] { display: none; }
.projectPage .detail-watch { display: block; border: 0; padding: 11px 14px; margin: 0; color: #b0a9bb; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; }
.detail-watch:hover { color: #b6e7ef !important; }
.detail-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 16px 0 22px; }
.detail-specs div { min-width: 0; }
.detail-specs dt { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #aaa3b8; margin-bottom: 5px; }
.detail-specs dd { color: #f1ecf7; font-size: 14px; line-height: 1.5; letter-spacing: .15px; }
.projectPage .development-lead { font-family: 'Merriweather', serif; font-style: italic; font-size: 19px; line-height: 1.6; color: #e6dfe9; margin: 0 0 22px; }
.development-layout { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(230px, .9fr); gap: clamp(35px, 5vw, 75px); align-items: start; }
.development-story { display: grid; gap: 18px; max-width: 790px; }
.detail-body { min-width: 0; }
.detail-focus { margin-top: 25px; padding: 20px 0 0; border-top: 1px solid #ffffff22; max-width: 64ch; }
.projectPage .detail-focus h3 { color: #b6e7ef; font: 11px 'Signika', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 9px; }
.projectPage .detail-focus p { font-size: 14px; }
.detail-skills { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin-top: 14px; }
.projectPage .detail-skills li { font-size: 11px; line-height: 1.5; letter-spacing: .25px; color: #ded7e7; padding: 4px 9px; border: 1px solid #ffffff26; border-radius: 3px; }
.detail-evidence { margin-top: 24px; border-top: 1px solid #ffffff26; border-bottom: 1px solid #ffffff26; }
.detail-evidence summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 0; color: #b6e7ef; font-size: 12px; letter-spacing: .4px; cursor: pointer; list-style: none; }
.detail-evidence summary::-webkit-details-marker { display: none; }
.detail-evidence summary::after { content: '+'; color: #ff80b2; font-size: 19px; }
.detail-evidence[open] summary::after { content: '−'; }
.detail-evidence > div { padding-bottom: 18px; }
.projectPage .detail-evidence p { font-size: 13px; line-height: 1.75; }
.detail-evidence p + p { margin-top: 12px; }
.projectPage .detail-evidence .story-source { margin-top: 14px; }
.detail-source-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.detail-evidence summary:focus-visible { outline: 2px solid #b6e7ef; outline-offset: 3px; }
.detail-copy { max-width: 64ch; }
.detail-copy > p + p { margin-top: 18px; }
.detail-copy .detail-explore { margin-top: 22px; }
.detail-copy > p + .detail-topics { margin-top: 26px; }
.detail-topic + .detail-topic { border-top: 1px solid #ffffff14; padding-top: 18px; margin-top: 18px; }
.projectPage .detail-topic h3 { font-size: 17px; line-height: 1.5; text-transform: none; margin: 0 0 7px; }
.projectPage .detail-topic p { font-size: 14px; line-height: 1.75; margin: 0; }
.detail-feature-list { list-style: none; display: grid; gap: 7px; margin-top: 18px; }
.detail-feature-list li { padding-left: 18px; }
.detail-feature-list li::before { content: ''; position: absolute; left: 0; top: 11px; width: 4px; height: 4px; border-radius: 50%; background: #ff80b2; }
.projectPage .story-step { position: relative; inset: auto; width: auto; height: auto; margin: 0; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 17px; }
.story-number { color: #ff80b2; font-size: 10px; line-height: 24px; font-variant-numeric: tabular-nums; }
.story-step:not(:last-child) .story-number::after { content: ''; position: absolute; top: 32px; bottom: -16px; left: 6px; width: 1px; background: linear-gradient(#ff80b240, #ffffff10); }
.projectPage .story-step h3 { font-size: 17px; line-height: 1.5; text-transform: none; margin: 0 0 6px; }
.projectPage .story-step p { font-size: 14px; line-height: 1.75; margin: 0; }
.development-summary { position: sticky; top: 0; padding: 18px 0 0 22px; border-left: 1px solid #ffffff22; }
.projectPage .summary-heading { font-size: 11px; letter-spacing: 1.5px; color: #b6e7ef; text-transform: uppercase; margin: 0 0 18px; }
.development-summary .detail-specs { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
.development-summary .detail-specs div { display: grid; grid-template-columns: 75px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid #ffffff12; }
.development-summary .detail-specs dt { margin: 0; }
.project-media-story .development-layout { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); }
.detail-overview .development-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; }
.detail-gallery .development-layout { display: block; }
.detail-media-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.detail-media-gallery .story-media img { height: clamp(180px, 34vh, 360px); max-height: none; }
.project-media-story .development-summary { padding-top: 0; }
.project-media-story .summary-heading { margin-bottom: 12px; }
.project-media-story .detail-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.project-media-story .detail-specs div { display: block; padding: 0; border: 0; }
.project-media-story .detail-specs dt { margin-bottom: 5px; }
.story-media { margin: 0; padding: 0; background: #08070d; border: 1px solid #ffffff24; border-radius: 6px; overflow: hidden; }
.story-media img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: contain; }
.story-step .story-media { margin-top: 14px; }
.story-step .story-media img { max-height: 360px; }
.development-summary > .story-media, .development-summary > .detail-video { margin-bottom: 16px; }
.development-summary .detail-media-caption { padding: 9px 12px; }
.projectPage .story-source { display: inline-flex; align-items: center; gap: 14px; margin-top: 20px; padding-bottom: 5px; border-bottom: 1px solid #b6e7ef70; font-size: 12px; letter-spacing: .25px; text-decoration: none; color: #b6e7ef; }
.story-source span { color: #ff80b2; transition: transform .2s; }
.story-source:hover span { transform: translate(2px, -2px); }
.detail-toolbar { position: absolute; z-index: 4; top: 85px; left: 55px; right: 55px; display: flex; gap: 25px; align-items: center; }
.detail-back { font-size: 12px; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.detail-back span { color: #ff80b2; transition: transform .25s; }
.detail-back:hover span { transform: translateX(-4px); }
.detail-project-name { font-size: 11px; color: #b8b0c2; border-left: 1px solid #ffffff30; padding-left: 25px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-view-toggle { margin-left: auto; padding: 8px 12px; border: 1px solid #ffffff35; background: #15102080; border-radius: 3px; font-size: 11px !important; cursor: pointer; white-space: nowrap; }
.detail-view-toggle:hover, .detail-view-toggle[aria-pressed='true'] { border-color: #ff80b2; }
.detail-reader { display: contents; }
.projectPage.is-continuous .detail-reader { display: block; position: absolute; inset: 140px 90px 115px 55px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ffffff38 transparent; padding-right: 12px; outline: none; }
.projectPage.is-continuous .slide { display: block; position: relative; inset: auto; width: 100%; height: auto; overflow: visible; margin: 0; padding: 60px 0; border-top: 1px solid #ffffff22; }
.projectPage.is-continuous .slide:first-child { border-top: 0; padding-top: 0; }
.projectPage.is-continuous .slide:last-child { padding-bottom: 20px; }
.projectPage.is-continuous .slide_content { margin: 0 auto; }
.projectPage.is-continuous .detail-explore { display: none; }
.detail-navigation { position: absolute; z-index: 4; left: 55px; right: 55px; bottom: 48px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.detail-progress { width: min(420px, 55%); min-width: 0; }
.detail-progress-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.detail-count { font-size: 11px; color: #b6e7ef; font-variant-numeric: tabular-nums; letter-spacing: 1px; white-space: nowrap; }
.detail-current-title { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-progress-track { height: 2px; background: #ffffff24; }
.detail-progress-fill { position: absolute; inset: 0; background: linear-gradient(90deg, #b6e7ef, #ff80b2); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.detail-progress-tip { width: 6px; height: 6px; position: absolute; right: -3px; top: -2px; background: #fff; border-radius: 50%; }
.detail-progress.is-stepping .detail-progress-tip::after { content: ''; position: absolute; inset: -5px; border: 1px solid #ff80b2; border-radius: 50%; animation: detail-step .55s ease-out both; }
@keyframes detail-step { from { transform: scale(.4); opacity: .9; } to { transform: scale(2); opacity: 0; } }
.detail-scroll-hint { font-size: 10px !important; color: #a8a0b4 !important; margin-top: 10px; }
.detail-controls { display: flex; gap: 9px; flex-shrink: 0; }
.detail-control { min-height: 42px; padding: 10px 16px; border: 1px solid #ffffff35; border-radius: 3px; background: #15102060; cursor: pointer; font-size: 12px !important; white-space: nowrap; transition: border-color .2s, background .2s; }
.detail-control:hover { background: #ffffff12; border-color: #ff80b2; }
.detail-control:disabled { opacity: .3; cursor: default; }
.detail-chapters { position: absolute; z-index: 4; right: 27px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; }
.detail-chapter { border: 0; background: transparent; cursor: pointer; width: 26px; height: 28px; display: grid; place-items: center; }
.detail-chapter::after { content: ''; width: 4px; height: 12px; border-radius: 3px; background: #ffffff30; transition: height .25s, background .25s; }
.detail-chapter[aria-current='step']::after { height: 26px; background: #ff80b2; }
.detail-chapter.is-visited::after { background: #b6e7ef; }
.detail-chapter[aria-current='step']::after { background: #ff80b2; }
.detail-chapter span { position: absolute; right: 34px; padding: 6px 10px; white-space: nowrap; border: 1px solid #ffffff25; border-radius: 3px; background: #171220; font-size: 11px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.detail-chapter:hover span, .detail-chapter:focus-visible span { opacity: 1; }
.projectPage button:focus-visible, .detail-back:focus-visible, .detail-watch:focus-visible, .story-source:focus-visible { outline: 2px solid #b6e7ef; outline-offset: 5px; }
@media (max-width: 1050px) {
  .projectPage .slide { inset: 125px 70px 115px 40px; }
  .projectPage.is-continuous .detail-reader { inset: 135px 70px 115px 40px; }
  .detail-toolbar, .detail-navigation { left: 40px; right: 40px; }
}
@media (max-width: 900px) {
  .projectPage .detail-video { max-width: 720px; }
  .development-layout, .project-media-story .development-layout, .detail-overview .development-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .development-summary, .project-media-story .development-summary { grid-row: 1; position: static; border-left: 0; border-top: 1px solid #ffffff22; padding: 18px 0 0; }
  .detail-intro .development-summary, .detail-compact .development-summary, .detail-overview:not(.detail-sequence) .development-summary, .detail-feature .development-summary { grid-row: auto; }
  .development-summary .detail-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .development-summary .detail-specs div { display: block; padding: 0; border: 0; }
  .development-summary .detail-specs dt { margin-bottom: 5px; }
}
@media (max-width: 763px) {
  .projectPage .slide { inset: 150px 20px 130px; padding-right: 5px; }
  .projectPage .slide_content { margin: auto 0; padding: 12px 0; }
  .projectPage .slide_title { font-size: 27px; margin-bottom: 22px; }
  .projectPage .project-hero .slide_title { font-size: 27px; }
  .projectPage p, .projectPage li { font-size: 14px; }
  .detail-toolbar { top: 116px; left: 20px; right: 20px; }
  .detail-toolbar { gap: 12px; }
  .detail-view-toggle { padding: 7px 9px; }
  .projectPage.is-continuous .detail-reader { inset: 165px 20px 130px; padding-right: 5px; }
  .projectPage.is-continuous .slide { inset: auto; padding: 35px 0; }
  .detail-project-name { display: none; }
  .detail-navigation { left: 20px; right: 20px; bottom: 28px; gap: 14px; align-items: center; }
  .detail-progress { width: 48%; }
  .detail-progress-heading { display: block; margin-bottom: 12px; }
  .detail-current-title { display: block; margin-top: 5px; font-size: 10px; }
  .detail-control { padding: 10px 12px; min-height: 44px; }
  .detail-controls { gap: 6px; }
  .detail-prev { font-size: 0 !important; }
  .detail-prev span { font-size: 15px; }
  .detail-chapters { display: none; }
  .detail-scroll-hint { font-size: 9px !important; }
  .projectPage .development-lead { font-size: 16px; margin-bottom: 22px; }
  .development-summary .detail-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projectPage .story-step { gap: 11px; grid-template-columns: 20px minmax(0, 1fr); }
  .projectPage .story-step h3 { font-size: 16px; }
  .detail-media-gallery { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .detail-media-gallery .story-media img { height: auto; }
  .projectPage .detail-topic h3 { font-size: 16px; }
  .story-media img, .story-step .story-media img { max-height: 300px; }
}
@media (max-height: 650px) and (min-width: 764px) {
  .projectPage .slide { top: 112px; bottom: 100px; }
  .projectPage.is-continuous .detail-reader { top: 120px; bottom: 100px; }
  .detail-toolbar { top: 76px; }
  .detail-navigation { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .projectPage .background img, .detail-progress-fill, .detail-chapter::after, .detail-explore span, .detail-video-poster img, .detail-back span, .story-source span { transition: none; }
  .detail-progress-tip::after { animation: none !important; }
}
