:root {
            --accent: #0060aa;
            --light: #f5f7fa;
            --dark: #1c1c1c;
            --text-main: #2c2c2c;
            --text-light: #666;
            --container-min: 980px;
            --container-ideal: 78vw;
            --container-max: 1280px;
        }

        body {
            margin: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            line-height: 1.8;
            color: var(--text-main);
            background: #fff;
            font-size: 17px;
            -webkit-font-smoothing: antialiased;
        }

        .case {
            max-width: clamp(var(--container-min), var(--container-ideal), var(--container-max));
            margin: 0 auto;
            padding: 0 1.5rem 6rem;
            text-align: center;
        }

        /* Title area: background is handled by the 3rd-party container.
   Do NOT paint a dark background here; keep h1 white (#fff). */
        header {
            padding: 3.5rem 0 2.2rem;
        }

        h1,
        h2,
        h3 {
            line-height: 1.25;
            margin: 0 0 .6em;
            font-weight: 600;
        }

        header h2 {
            font-size: .85rem;
            letter-spacing: 1.6px;
            text-transform: uppercase;
            font-weight: 600;
            color: rgba(255, 255, 255, .85);
            display: inline-block;
            margin: 0 0 .9rem;
        }

        h1 {
            font-size: 2.4rem;
            color: #fff;
            font-weight: 700;
            letter-spacing: -.5px;
            margin: 0 0 .7rem;
        }

        header p {
            margin: 0;
            color: rgba(255, 255, 255, .85);
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
            text-align: left;
        }

        /* Body typography */
        section {
            max-width: 900px;
            margin: 0 auto;
            text-align: left;
            hyphens: auto;
            overflow-wrap: anywhere;
            word-break: normal;
        }

        section h2 {
            font-size: 1.5rem;
            border-bottom: 3px solid var(--accent);
            padding-bottom: .25em;
            margin-top: 2.2rem;
            font-weight: 600;
            display: inline-block;
            color: var(--dark);
        }

        h3 {
            font-size: 1.25rem;
            margin: 2.2rem 0 .9rem;
            color: var(--dark);
        }

        p {
            margin: 0 0 1.2rem;
            color: #333;
            text-align: left;
            /* critical: avoid justify-induced stretched whitespace */
        }

        strong {
            font-weight: 700;
            color: #000;
        }

        ul {
            margin: 0 0 1.4rem;
            padding-left: 1.2rem;
        }

        li {
            margin: .45rem 0;
        }

        /* Frame */
        figure.frame {
            margin: 2.4rem 0;
        }

        figure.frame .slot {
            width: 100%;
            aspect-ratio: 16/9;
            /* default; override via data-ratio */
            background: #000;
            border-radius: 12px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 15px 40px rgba(0, 0, 0, .12);
        }

        /* No black bars/gaps: absolute fill + block + cover */
        figure.frame .slot>img,
        figure.frame .slot>video {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            display: block;
        }

        /* If you must show full image (allow letterboxing), set data-fit="contain" */
        figure.frame .slot[data-fit="contain"]>img,
        figure.frame .slot[data-fit="contain"]>video {
            object-fit: contain;
        }

        /* Ratio presets */
        figure.frame .slot[data-ratio="16:9"] {
            aspect-ratio: 16/9;
        }

        figure.frame .slot[data-ratio="4:3"] {
            aspect-ratio: 4/3;
        }

        figure.frame .slot[data-ratio="3:4"] {
            aspect-ratio: 3/4;
        }

        figure.frame .slot[data-ratio="1:1"] {
            aspect-ratio: 1/1;
        }

        figure.frame .slot[data-ratio="3:2"] {
            aspect-ratio: 3/2;
        }

        figure.frame .slot[data-ratio="2:3"] {
            aspect-ratio: 2/3;
        }

        figure.frame .slot[data-ratio="21:9"] {
            aspect-ratio: 21/9;
        }

        /* Ratio Overrides (add exact ratios here when needed; do not add new class names) */
        figure.frame .slot[data-ratio="9:16"] {
            aspect-ratio: 9/16;
        }

        figure.frame figcaption {
            text-align: center;
            font-size: .9rem;
            color: var(--text-light);
            margin-top: .9rem;
            font-style: italic;
        }

        /* Quote */
        blockquote {
            margin: 2.2rem 0;
            padding: 1.4rem 1.6rem;
            background: var(--light);
            border-left: 5px solid var(--accent);
            font-style: italic;
            font-size: 1.05rem;
            color: #444;
            border-radius: 0 8px 8px 0;
        }

        blockquote p {
            margin: 0 0 .7rem;
        }

        blockquote p:last-child {
            margin: 0;
            font-style: normal;
            color: #333;
            font-size: .95rem;
        }

        /* Divider */
        hr {
            border: none;
            height: 1px;
            background: linear-gradient(90deg, transparent, #ddd, transparent);
            margin: 2.8rem 0;
        }

        /* Credits box (optional) */
        .credits-box {
            background: var(--light);
            padding: 1.6rem;
            border-radius: 12px;
            max-width: 760px;
            margin: 2rem auto;
            text-align: left;
        }

        .credit-row {
            display: flex;
            justify-content: flex-start;
            align-items: baseline;
            padding: .8rem 0;
            border-bottom: 1px solid rgba(0, 0, 0, .05);
        }

        .credit-row:last-child {
            border-bottom: none;
        }

        .credit-label {
            flex: 0 0 34%;
            font-weight: 700;
            color: var(--accent);
            text-align: right;
            padding-right: 1.6rem;
            box-sizing: border-box;
        }

        .credit-value {
            flex: 1;
            color: var(--dark);
            font-weight: 500;
        }

        .credit-value a {
            color: var(--accent);
            text-decoration: none;
            border-bottom: 1px solid rgba(0, 96, 170, .3);
        }

        /* CTA (optional) */
        .cta-box {
            margin-top: 3rem;
            padding: 2rem;
            background: linear-gradient(135deg, #0060aa, #004b85);
            color: #fff;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 96, 170, .2);
        }

        .cta-box p {
            color: rgba(255, 255, 255, .9);
            margin: 0;
        }

        .cta-box strong {
            color: #fff;
            display: block;
            margin-bottom: .5rem;
            font-size: 1.1em;
        }

        @media (max-width:768px) {
            .case {
                padding-left: 1rem;
                padding-right: 1rem;
            }

            h1 {
                font-size: 1.8rem;
            }

            .credit-row {
                flex-direction: column;
                text-align: center;
            }

            .credit-label {
                text-align: center;
                padding-right: 0;
                margin-bottom: .2rem;
                color: #888;
                font-size: .9em;
                text-transform: uppercase;
                letter-spacing: 1px;
            }

            .credits-box {
                text-align: center;
            }

            header p {
                text-align: left;
            }
        }