/* =========================================================
   TufKo storyboard page
   ========================================================= */

.story-hero {
    background:
        radial-gradient(circle at 80% 40%,
            rgb(255 255 255 / 6%),
            transparent 30%),
        linear-gradient(135deg,
            var(--tufko-black),
            var(--tufko-grey-900) 68%,
            var(--tufko-steel-dark));
    color: var(--tufko-white);
}

.story-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 7rem);
    min-height: 560px;
    padding-block: clamp(4.5rem, 9vw, 7rem);
}

.story-hero__content {
    max-width: 820px;
}

.story-hero h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6.5vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 0.98;
}

.story-hero__summary {
    max-width: 690px;
    margin: 1.75rem 0 0;
    color: var(--tufko-steel-light);
    font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.story-hero__mark {
    display: flex;
    justify-content: center;
}

.story-hero__mark img {
    width: min(100%, 300px);
    height: auto;
    filter: drop-shadow(0 1.75rem 2.5rem rgb(0 0 0 / 40%));
}

/* Shared storyboard layout */

.story-section {
    position: relative;
    overflow: hidden;
}

.story-section--light {
    background: var(--tufko-white);
}

.story-section--muted {
    background: var(--tufko-grey-100);
}

.story-section--dark {
    background: var(--tufko-charcoal);
    color: var(--tufko-white);
}

.story-panel {
    display: grid;
    grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1.65fr);
    gap: clamp(2rem, 7vw, 7rem);
    align-items: start;
}

.story-panel__number {
    position: sticky;
    top: 2rem;
    color: var(--tufko-orange);
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 0.9;
    opacity: 0.24;
}

.story-panel__content {
    max-width: 900px;
}

.story-panel__content h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
}

.story-panel__lead {
    max-width: 66ch;
    margin: 1.5rem 0 0;
    color: var(--tufko-grey-700);
    font-size: 1.08rem;
}

.story-section--dark .story-panel__lead {
    color: var(--tufko-steel-light);
}

/* Problem cards */

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
}

.problem-card {
    padding: 1.75rem;
    background: var(--tufko-white);
    border: 1px solid var(--tufko-grey-300);
    border-left: 4px solid var(--tufko-orange);
}

.problem-card h3 {
    margin: 0 0 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

.problem-card p {
    margin: 0;
    color: var(--tufko-grey-700);
}

/* Contrast */

.contrast-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.contrast-panel {
    padding: clamp(1.75rem, 4vw, 2.5rem);
    border: 1px solid var(--tufko-grey-300);
}

.contrast-panel--weak {
    background: var(--tufko-grey-100);
}

.contrast-panel--strong {
    background: var(--tufko-charcoal);
    border-color: var(--tufko-charcoal);
    color: var(--tufko-white);
}

.contrast-panel h3 {
    margin: 0 0 1.25rem;
    font-family: var(--font-heading);
    font-size: 1.6rem;
}

.contrast-panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contrast-panel li {
    position: relative;
    padding: 0.8rem 0 0.8rem 1.4rem;
    border-bottom: 1px solid rgb(0 0 0 / 10%);
}

.contrast-panel--strong li {
    border-color: rgb(255 255 255 / 12%);
}

.contrast-panel li:last-child {
    border-bottom: 0;
}

.contrast-panel li::before {
    position: absolute;
    top: 1.35rem;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--tufko-orange);
    content: "";
    transform: rotate(45deg);
}

/* Method */

.method-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    margin-top: 3rem;
    background: rgb(255 255 255 / 14%);
}

.method-step {
    min-height: 210px;
    padding: 1.75rem;
    background: var(--tufko-charcoal);
}

.method-step span {
    display: block;
    margin-bottom: 1.5rem;
    color: var(--tufko-orange-bright);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.method-step h3 {
    margin: 0 0 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.35rem;
}

.method-step p {
    margin: 0;
    color: var(--tufko-steel-light);
}

/* Standard */

.standard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
}

.standard-card {
    padding: 2rem;
    background: var(--tufko-white);
    border: 1px solid var(--tufko-grey-300);
    border-top: 4px solid var(--tufko-orange);
}

.standard-card h3 {
    margin: 0 0 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

.standard-card p {
    margin: 0;
    color: var(--tufko-grey-700);
}

/* Lifecycle */

.lifecycle {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin-top: 3rem;
    padding: 0;
    list-style: none;
}

.lifecycle li {
    position: relative;
    padding: 2rem 1.25rem;
    background: var(--tufko-white);
    border: 1px solid var(--tufko-grey-300);
    border-right: 0;
    text-align: center;
}

.lifecycle li:last-child {
    border-right: 1px solid var(--tufko-grey-300);
}

.lifecycle li:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: -0.6rem;
    z-index: 2;
    width: 1.2rem;
    height: 1.2rem;
    background: var(--tufko-orange);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    content: "";
    transform: translateY(-50%);
}

.lifecycle span {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--tufko-orange);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.lifecycle strong {
    font-family: var(--font-heading);
    font-size: 1.05rem;
}

/* Accountability */

.accountability {
    display: grid;
    grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 7rem);
}

.accountability__portrait {
    position: relative;
}

.accountability__portrait::before {
    position: absolute;
    top: -1rem;
    right: -1rem;
    bottom: 1rem;
    left: 1rem;
    border: 1px solid rgb(255 255 255 / 20%);
    content: "";
}

.accountability__portrait img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-bottom: 5px solid var(--tufko-orange);
}

.accountability__content {
    max-width: 760px;
}

.accountability__content h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1.05;
}

.accountability__identity {
    margin: 1.75rem 0;
    padding: 1.25rem 0;
    border-top: 1px solid rgb(255 255 255 / 16%);
    border-bottom: 1px solid rgb(255 255 255 / 16%);
}

.accountability__identity p {
    margin: 0.2rem 0;
}

.accountability__identity strong {
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.accountability__content>p {
    max-width: 64ch;
    color: var(--tufko-steel-light);
}

/* Outcome */

.outcome-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
}

.outcome-card {
    padding: 1.75rem;
    background: var(--tufko-white);
    border: 1px solid var(--tufko-grey-300);
}

.outcome-card span {
    display: block;
    margin-bottom: 1rem;
    color: var(--tufko-orange);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.outcome-card h3 {
    margin: 0 0 0.65rem;
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.outcome-card p {
    margin: 0;
    color: var(--tufko-grey-700);
}

/* CTA */

.story-cta {
    background:
        linear-gradient(135deg,
            var(--tufko-grey-900),
            var(--tufko-charcoal));
    color: var(--tufko-white);
}

.story-cta__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.story-cta__content {
    max-width: 760px;
}

.story-cta h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 3.8rem);
    line-height: 1.05;
}

.story-cta p:not(.eyebrow) {
    margin-bottom: 0;
    color: var(--tufko-steel-light);
}

/* Responsive */

@media (max-width: 1050px) {
    .method-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lifecycle {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lifecycle li:nth-child(3) {
        border-right: 1px solid var(--tufko-grey-300);
    }

    .lifecycle li:nth-child(n + 4) {
        border-top: 0;
    }

    .lifecycle li:nth-child(3)::after {
        display: none;
    }

    .outcome-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {

    .story-hero__inner,
    .story-panel,
    .accountability {
        grid-template-columns: 1fr;
    }

    .story-panel__number {
        position: static;
        font-size: 4rem;
    }

    .story-hero__mark img {
        width: min(55%, 270px);
    }

    .standard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .problem-grid,
    .contrast-grid,
    .method-grid,
    .lifecycle,
    .outcome-grid {
        grid-template-columns: 1fr;
    }

    .lifecycle li {
        border-right: 1px solid var(--tufko-grey-300);
        border-bottom: 0;
    }

    .lifecycle li:nth-child(n + 4) {
        border-top: 1px solid var(--tufko-grey-300);
    }

    .lifecycle li:last-child {
        border-bottom: 1px solid var(--tufko-grey-300);
    }

    .lifecycle li::after {
        display: none;
    }

    .story-cta__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .story-hero__inner {
        padding-block: 3.75rem;
    }

    .story-hero h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .story-hero__mark img {
        width: min(72%, 230px);
    }

    .problem-card,
    .contrast-panel,
    .method-step,
    .standard-card,
    .outcome-card {
        padding: 1.5rem;
    }

    .accountability__portrait::before {
        display: none;
    }
}
