/* OpenBioForge site additions: status strip, history timeline, watch and read */

/* Status strip */
#status-strip {
    background: #0d0d0d;
    border-top: 1px solid #1e1e1e;
    border-bottom: 1px solid #1e1e1e;
}

#status-strip .row {
    padding-top: 30px;
    padding-bottom: 30px;
}

.status-track {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 960px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.status-track li {
    position: relative;
    padding: 30px 24px 0 0;
}

/* Stage dot, matching the history timeline */
.status-track li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #000;
    border: 2px solid #87fa23;
    box-sizing: border-box;
}

.status-track li.status-done:before {
    background: #87fa23;
}

.status-track li.status-current:before {
    animation: status-pulse 2.4s ease-out infinite;
}

.status-track li.status-next:before {
    border-color: #b6443f;
}

/* Line to the next stage: solid when reached, dashed ahead */
.status-track li:after {
    content: "";
    position: absolute;
    left: 20px;
    right: 6px;
    top: 6px;
    height: 2px;
    background: #87fa23;
}

.status-track li.status-current:after {
    background: repeating-linear-gradient(to right, #444 0 6px, transparent 6px 12px);
}

.status-track li:last-child:after {
    display: none;
}

.status-track .status-label {
    display: block;
    color: #87fa23;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.status-track li.status-next .status-label {
    color: #b6443f;
}

.status-track .status-text {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 4px 0 2px 0;
}

.status-track .status-meta {
    display: block;
    color: #888;
    font-size: 13px;
}

@keyframes status-pulse {
    0% { box-shadow: 0 0 0 0 rgba(135, 250, 35, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(135, 250, 35, 0); }
    100% { box-shadow: 0 0 0 0 rgba(135, 250, 35, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .status-track li.status-current:before {
        animation: none;
    }
}

/* History timeline */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 28px;
    position: relative;
}

.timeline:before {
    content: "";
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #2a2a2a;
}

.timeline li {
    position: relative;
    padding: 0 0 26px 0;
}

.timeline li:last-child {
    padding-bottom: 0;
}

.timeline li:before {
    content: "";
    position: absolute;
    left: -28px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #000;
    border: 2px solid #87fa23;
    box-sizing: border-box;
}

.timeline li.timeline-next:before {
    border-color: #b6443f;
}

.timeline .timeline-year {
    display: block;
    color: #87fa23;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.timeline li.timeline-next .timeline-year {
    color: #b6443f;
}

.timeline .timeline-text {
    color: #ccc;
    margin: 0;
}

/* Watch and read: video cards */
.link-list-heading {
    color: #fff;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 20px 0 14px 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 28px;
}

.video-card {
    background: #0d0d0d;
    border: 1px solid #1e1e1e;
    transition: border-color 0.2s ease;
}

.video-card:hover {
    border-color: #87fa23;
}

#resources .video-thumb {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

#resources .video-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.3s ease;
}

#resources .video-thumb:hover img {
    opacity: 1;
    transform: scale(1.03);
}

.video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
    border-radius: 50%;
    border: 2px solid #87fa23;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-play i {
    color: #87fa23;
    font-size: 20px;
    margin-left: 4px;
}

.video-card-body {
    padding: 18px 20px 20px;
}

.video-card-meta {
    display: block;
    color: #87fa23;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.video-card-body h4 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 8px 0;
    text-transform: none;
}

.video-card-body p {
    color: #aaa;
    font-size: 14px;
    margin: 0;
}

.video-card-body p.video-card-also {
    margin-top: 10px;
    color: #888;
    font-size: 13px;
}

#resources .video-card-also a {
    display: inline;
    text-transform: none;
    font-weight: 600;
    color: #87fa23;
}

/* Watch and read: press list */
.press-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 0 28px;
}

.press-list li {
    border-top: 1px solid #1e1e1e;
}

#resources .press-list a {
    display: block;
    text-align: left;
    text-transform: none;
    font-weight: normal;
    padding: 14px 0;
}

.press-source {
    display: block;
    color: #888;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.press-title {
    display: block;
    color: #87fa23;
    font-weight: 600;
    margin: 4px 0;
}

#resources .press-list a:hover .press-title {
    text-decoration: underline;
}

.press-desc {
    display: block;
    color: #aaa;
    font-size: 14px;
}

/* Status track stacks vertically on phones, like the timeline */
@media only screen and (max-width: 767px) {
    .status-track {
        grid-template-columns: 1fr;
    }

    .status-track li {
        padding: 0 0 20px 28px;
    }

    .status-track li:last-child {
        padding-bottom: 0;
    }

    .status-track li:before {
        top: 3px;
    }

    .status-track li:after {
        left: 6px;
        right: auto;
        top: 21px;
        bottom: -1px;
        width: 2px;
        height: auto;
    }

    .status-track li.status-current:after {
        background: repeating-linear-gradient(to bottom, #444 0 6px, transparent 6px 12px);
    }
}

/* Banner: intro line and actions */
.banner-intro {
    color: #fff;
    font-size: 18px;
    line-height: 1.5;
    max-width: 440px;
    margin: 10px 0 0 0;
    text-shadow: 0 0 10px #000, 0 0 20px #000;
}

.banner-actions .button {
    margin: 35px 12px 0 0;
}

.banner-actions .button i {
    font-size: 13px;
    margin-left: 4px;
}

/* Section rhythm: alternate sections sit on a slightly lighter black */
.secondary-color {
    border-top: 1px solid #161616;
    border-bottom: 1px solid #161616;
}

/* Subtitles: a little brighter and heavier for legibility */
.section-subtitle {
    color: #b0b0b0;
    font-weight: 400;
}

/* Gallery: heading and lighter frames */
#gallery .gallery-heading {
    text-align: left;
    padding: 0 20px;
}

#gallery .gallery-heading .section-heading h2:after {
    margin: 30px 0 15px 0;
}

#gallery img {
    border: 1px solid #2a2a2a;
}

#gallery a:hover img {
    border-color: #87fa23;
    opacity: 0.35;
}

/* Quote */
#quote .row,
#trailer .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* Show the whole artwork, scaled to fit, rather than cropping it */
#quote .quote-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 520px;
    margin: 0 auto;
    mix-blend-mode: lighten;
}

.quote-band {
    margin: 0;
    padding: 0 0 0 20px;
}

.quote-band q {
    display: block;
    color: #eee;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.55;
}

.quote-band footer {
    margin-top: 24px;
    color: #87fa23;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.quote-band footer:before {
    content: "";
    display: block;
    width: 30px;
    height: 5px;
    margin-bottom: 16px;
    background: #b6443f;
}

/* Latest: large video thumbnail */
.latest-thumb {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
    border: 1px solid #1e1e1e;
    transition: border-color 0.2s ease;
}

.latest-thumb:hover {
    border-color: #87fa23;
}

.latest-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.3s ease;
}

a.latest-thumb:hover img {
    opacity: 1;
    transform: scale(1.02);
}

.latest-thumb .video-play {
    width: 84px;
    height: 84px;
    margin: -42px 0 0 -42px;
}

.latest-thumb .video-play i {
    font-size: 28px;
    margin-left: 6px;
}

@media only screen and (max-width: 767px) {
    #quote .quote-image {
        max-height: 360px;
    }

    .quote-band {
        padding: 0;
    }

    .quote-band q {
        font-size: 19px;
    }
}

/* FAQ: collapsible questions */
.faq-list details {
    border-top: 1px solid #1e1e1e;
}

.faq-list details:last-of-type {
    border-bottom: 1px solid #1e1e1e;
}

.faq-list summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 16px 40px 16px 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary:after {
    content: "+";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #87fa23;
    font-size: 22px;
    font-weight: 400;
}

.faq-list details[open] summary:after {
    content: "\2212";
}

.faq-list summary:hover {
    color: #87fa23;
}

.faq-list summary:focus-visible {
    outline: 2px solid #87fa23;
    outline-offset: 2px;
}

.faq-answer {
    padding: 0 40px 18px 0;
}

.faq-answer p {
    color: #bbb;
    margin: 0;
}

/* Credits */
.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 28px;
    margin: 10px 0 30px 0;
}

.credits-group .credit-label {
    color: #87fa23;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    padding: 0;
}

.credits-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.credits-group li {
    color: #eee;
    margin: 0 0 12px 0;
}

.credits-group .credit-note {
    display: block;
    color: #888;
    font-size: 13px;
}
