/*
 * The homepage and case study pages in the adventure game's pixel style.
 * On by default; "Modern look" in the header switches back to the original style, and the
 * choice is remembered (js/skin.js, `pjs-skin` in localStorage). Everything here is scoped
 * to html.skin-pixel, so the original styles in styles.css stay untouched underneath.
 * The scenes in images/pixel/ are painted from the game's own rooms by _tools/pixel-scenes.mjs.
 */

.skin-pixel {
    --p-bg: #0a0812;
    --p-panel: #120e1f;
    --p-dialog: #1c1630;
    --p-line: #2a2342;
    --p-line-hi: #4a3f70;
    --p-frame: #5a4f8a;
    --p-text: #e9e4ff;
    --p-muted: #a49cc8;
    --p-verb: #8f7fe6;
    --p-hot: #f4d34c;
    --p-teal: #62d6d0;
    --p-choice: #c08ef0;
    --p-gold: #e0ac45;
    --p-gold-dk: #a8772a;
    --p-cream: #f3e6c0;
    --p-navy: #1f2850;
    --p-font: 'VT323', ui-monospace, Menlo, Consolas, monospace;
    /* The black outline the game draws round speech, so text reads over any scene */
    --p-outline:
        2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000,
        2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
}

.skin-pixel body {
    font-family: var(--p-font);
    font-feature-settings: normal;
    font-size: 2.2rem;
    line-height: 2.6rem;
    color: var(--p-text);
    background: var(--p-bg);
    -webkit-font-smoothing: none;
}

.skin-pixel ::selection {
    background: var(--p-hot);
    color: var(--p-panel);
}

/* Kept at the lowest specificity, and out of the live demos, so components keep their own link colours */
:where(.skin-pixel) a:where(:not(.demo *)) {
    color: var(--p-teal);
}

:where(.skin-pixel) a:where(:not(.demo *)):hover {
    color: var(--p-hot);
}

.skin-pixel :focus-visible {
    outline: 2px solid var(--p-hot);
    outline-offset: 2px;
    box-shadow: none;
    border-radius: 0;
}

.skin-pixel .eyebrow {
    color: var(--p-hot);
    font-size: 2rem;
    line-height: 2.4rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.skin-pixel .section-header h2,
.skin-pixel .section-header h3,
.skin-pixel .contact h2 {
    font-weight: 400;
    letter-spacing: 0;
    color: #fff;
    text-shadow: 3px 3px 0 #000;
}

.skin-pixel .section-header h2 {
    font-size: 3.6rem;
    line-height: 3.6rem;
}

.skin-pixel .section-header h3 {
    font-size: 3rem;
    line-height: 3.2rem;
}

@media (min-width: 768px) {
    .skin-pixel .section-header h2 {
        font-size: 4.8rem;
        line-height: 4.8rem;
    }
}

.skin-pixel .section-header p {
    color: var(--p-muted);
}

/* ---------- Buttons: the game's verb buttons ---------- */

.skin-pixel .btn {
    min-height: 44px;
    padding: 4px 16px;
    border: 2px solid var(--p-line-hi);
    border-radius: 0;
    font-family: var(--p-font);
    font-size: 2.4rem;
    line-height: 2.8rem;
    font-weight: 400;
    transition: none;
}

.skin-pixel .btn-brand,
.skin-pixel .btn-primary {
    border-color: #000;
    background: var(--p-hot);
    color: var(--p-panel);
    box-shadow: 4px 4px 0 #000;
}

.skin-pixel .btn-brand:hover,
.skin-pixel .btn-primary:hover {
    background: #fff;
    color: var(--p-panel);
    box-shadow: 2px 2px 0 #000;
    transform: translate(2px, 2px);
}

.skin-pixel .btn-on-dark,
.skin-pixel .btn-outline {
    background: var(--p-panel);
    color: var(--p-verb);
    box-shadow: 4px 4px 0 #000;
}

.skin-pixel .btn-on-dark:hover,
.skin-pixel .btn-outline:hover {
    background: var(--p-panel);
    border-color: var(--p-hot);
    color: var(--p-hot);
}

.skin-pixel .btn:disabled {
    background: var(--p-line);
    color: var(--p-muted);
    box-shadow: none;
    transform: none;
}

/* ---------- Header: the game's top bar ---------- */

.skin-pixel .site-header {
    background: var(--p-bg);
    border-bottom: 2px solid var(--p-line);
}

.skin-pixel .wordmark {
    color: #fff;
    font-size: 2.6rem;
    font-weight: 400;
    letter-spacing: 0;
}

.skin-pixel .wordmark__mark {
    width: 30px;
    height: 30px;
    border-radius: 0;
    background: #232e54;
    color: #fff;
    font-size: 2rem;
    font-weight: 400;
    box-shadow: inset 0 0 0 2px #5ab7f2;
}

.skin-pixel .site-nav a,
.skin-pixel .skin-toggle {
    padding: 2px 10px;
    border: 2px solid var(--p-line);
    border-radius: 0;
    color: var(--p-verb);
    font-size: 2.2rem;
    line-height: 2.6rem;
    font-weight: 400;
}

.skin-pixel .site-nav a:hover,
.skin-pixel .skin-toggle:hover {
    background: transparent;
    border-color: var(--p-line-hi);
    color: var(--p-hot);
}

.skin-pixel .site-nav .nav-cta {
    border-color: #000;
    background: var(--p-hot);
    color: var(--p-panel);
}

.skin-pixel .site-nav .nav-cta:hover {
    background: #fff;
    color: var(--p-panel);
}

.skin-pixel .site-nav .nav-game {
    color: var(--p-teal);
}

@media (max-width: 479px) {
    .skin-pixel .wordmark > span:last-child {
        display: none;
    }

    .skin-pixel .site-nav ul {
        gap: 4px;
    }

    .skin-pixel .site-nav a,
    .skin-pixel .skin-toggle {
        padding: 2px 6px;
        font-size: 2rem;
    }
}

.skin-pixel .site-nav a {
    white-space: nowrap;
}

/* ---------- Hero: the title screen's night over the chapel ---------- */

.skin-pixel .hero {
    background: #05040c url('../images/pixel/night.png') center bottom / cover no-repeat;
    image-rendering: pixelated;
    color: #fff;
}

.skin-pixel .hero::before,
.skin-pixel .hero__glow,
.skin-pixel .hero__visual {
    display: none;
}

.skin-pixel .hero .container {
    image-rendering: auto;
}

.skin-pixel .hero__role {
    padding: 2px 10px;
    border-radius: 0;
    background: var(--p-cream);
    color: var(--p-navy);
    font-size: 2rem;
    line-height: 2.4rem;
    font-weight: 400;
    letter-spacing: 1px;
    box-shadow: 0 0 0 2px var(--p-navy), 4px 4px 0 2px #000;
}

.skin-pixel .hero__role::before {
    width: 8px;
    height: 8px;
    border-radius: 0;
    background: #3cb4a8;
    animation: pixel-blink 1.1s steps(2, start) infinite;
}

.skin-pixel .hero h1 {
    font-size: 5.2rem;
    line-height: 4.8rem;
    font-weight: 400;
    letter-spacing: 0;
    text-shadow: var(--p-outline), 4px 6px 0 #000;
}

@media (min-width: 768px) {
    .skin-pixel .hero h1 {
        font-size: 8.8rem;
        line-height: 7.6rem;
    }
}

.skin-pixel .hero h1 .accent {
    color: var(--p-hot);
}

/* The intro sits in one of the game's dialog boxes, so it reads over the lit chapel windows */
.skin-pixel .hero__intro {
    max-width: 620px;
    margin-left: 4px;
    margin-right: 4px;
    padding: 14px 18px;
    background: var(--p-dialog);
    box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--p-frame), 8px 8px 0 4px #000;
    color: var(--p-text);
    font-size: 2.4rem;
    line-height: 2.8rem;
}

.skin-pixel .hero__stats {
    gap: 16px;
    padding-top: 0;
    border-top: 0;
}

.skin-pixel .hero__stats > div {
    padding: 14px 16px;
    background: var(--p-panel);
    box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--p-line-hi), 6px 6px 0 4px #000;
}

.skin-pixel .hero__stats dt {
    color: var(--p-hot);
    font-size: 3.6rem;
    line-height: 3.6rem;
    font-weight: 400;
    letter-spacing: 0;
}

.skin-pixel .hero__stats dd {
    margin-top: 4px;
    color: var(--p-muted);
    font-size: 2rem;
    line-height: 2.2rem;
}

/* ---------- Sections: each opens on a room from the game ---------- */

.skin-pixel .section {
    background: var(--p-panel);
}

.skin-pixel .section--subtle {
    border: 0;
}

/* The scene banner: drawn at a whole-number scale so the pixels stay square */
.skin-pixel #about,
.skin-pixel #experience,
.skin-pixel #contact {
    padding-top: 0;
}

.skin-pixel #about::before,
.skin-pixel #experience::before,
.skin-pixel #contact::before {
    content: '';
    display: block;
    height: 200px;
    margin-bottom: var(--token-space-800);
    border-bottom: 4px solid #000;
    background-color: var(--p-bg);
    background-repeat: no-repeat;
    background-size: 640px 288px;
    background-position: center var(--scene-y, 50%);
    image-rendering: pixelated;
}

@media (min-width: 768px) {
    .skin-pixel #about::before,
    .skin-pixel #experience::before,
    .skin-pixel #contact::before {
        height: 260px;
        margin-bottom: var(--token-space-1000);
        background-size: 960px 432px;
    }
}

@media (min-width: 1100px) {
    .skin-pixel #about::before,
    .skin-pixel #experience::before,
    .skin-pixel #contact::before {
        height: 320px;
        background-size: cover;
    }
}

.skin-pixel #about::before {
    --scene-y: 8%;
    background-image: url('../images/pixel/studio.png');
}

.skin-pixel #experience::before {
    --scene-y: 22%;
    background-image: url('../images/pixel/hall.png');
}

.skin-pixel #contact::before {
    --scene-y: 46%;
    background-image: url('../images/pixel/street.png');
}

/* Each room's colours carry on below its scene */
.skin-pixel #work {
    background: #2a2240;
    border-top: 4px solid var(--p-gold-dk);
}

.skin-pixel #about {
    background: #282d3e;
}

.skin-pixel #experience {
    background: #1b3129;
}

.skin-pixel #credentials {
    background: var(--p-panel);
}

/* ---------- Work: pictures in the gallery ---------- */

.skin-pixel .work-card {
    border: 0;
    border-radius: 0;
    background: var(--p-dialog);
    box-shadow: 0 0 0 2px #000, 0 0 0 6px var(--p-gold), 0 0 0 8px #000, 8px 8px 0 8px #000;
    margin: 8px;
    transition: none;
}

.skin-pixel .work-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 0 0 0 2px #000, 0 0 0 6px var(--p-hot), 0 0 0 8px #000, 12px 12px 0 8px #000;
}

.skin-pixel .work-grid {
    gap: 32px;
}

.skin-pixel .work-card__media {
    background: var(--p-cream);
    border-bottom: 4px solid var(--p-gold-dk);
}

.skin-pixel .work-card__media img,
.skin-pixel .work-card__media--screen img {
    inset: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    box-shadow: 0 0 0 2px var(--p-navy);
    transition: none;
}

.skin-pixel .work-card:hover .work-card__media img {
    transform: none;
}

.skin-pixel .work-card__title {
    font-size: 2.8rem;
    line-height: 2.8rem;
    font-weight: 400;
    color: #fff;
}

.skin-pixel .work-card:hover .work-card__title {
    color: var(--p-hot);
}

.skin-pixel .work-card__summary,
.skin-pixel .work-grid--compact .work-card__summary {
    color: var(--p-muted);
    font-size: 2rem;
    line-height: 2.2rem;
}

.skin-pixel .work-grid--compact .work-card__title {
    font-size: 2.6rem;
    line-height: 2.6rem;
}

.skin-pixel .work-card__more {
    color: var(--p-choice);
    font-size: 2.2rem;
    font-weight: 400;
}

.skin-pixel .work-card:hover .work-card__more {
    color: var(--p-hot);
}

/* Tags: the game's sign boards */
.skin-pixel .tag {
    padding: 0 8px;
    border-radius: 0;
    background: var(--p-navy);
    color: var(--p-gold);
    font-size: 1.8rem;
    line-height: 2.4rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.skin-pixel .section-header--sub {
    border-top: 0;
    background: repeating-conic-gradient(var(--p-gold-dk) 0 25%, transparent 0 50%) 0 0 / 8px 8px repeat-x;
}

.skin-pixel .work-card__media--type {
    background: var(--p-navy);
}

.skin-pixel .work-card__media--type .work-card__kicker {
    color: var(--p-gold);
    font-size: 1.8rem;
    font-weight: 400;
}

.skin-pixel .work-card__media--type .work-card__headline {
    font-size: 3rem;
    line-height: 3rem;
    font-weight: 400;
}

/* The password lock: the gallery keypad */
.skin-pixel .lock--inline {
    border: 0;
    border-radius: 0;
    background: var(--p-dialog);
    box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--p-frame), 8px 8px 0 4px #000;
    margin: 4px;
}

.skin-pixel .lock__title,
.skin-pixel .lock--inline .lock__title {
    color: var(--p-hot);
    font-size: 3rem;
    line-height: 3rem;
    font-weight: 400;
}

.skin-pixel .lock__text {
    color: var(--p-text);
}

.skin-pixel .lock__label {
    color: var(--p-teal);
    font-size: 2rem;
    line-height: 2.4rem;
    font-weight: 400;
}

.skin-pixel .lock__input {
    min-height: 44px;
    border: 2px solid var(--p-frame);
    border-radius: 0;
    background: var(--p-bg);
    color: #fff;
    font-family: var(--p-font);
    font-size: 2.4rem;
}

.skin-pixel .lock__input:focus {
    border-color: var(--p-hot);
    box-shadow: none;
}

.skin-pixel .lock__error {
    color: #ff8a80;
    font-size: 2rem;
}

/* ---------- About: the studio ---------- */

.skin-pixel .about__copy p {
    font-size: 2.4rem;
    line-height: 2.8rem;
}

.skin-pixel .principle {
    border: 0;
    border-radius: 0;
    background: var(--p-panel);
    box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--p-line-hi), 6px 6px 0 4px #000;
    margin: 4px;
}

.skin-pixel .principle__icon {
    border-radius: 0;
    background: #3d4280;
    color: #5ab7f2;
    box-shadow: inset 0 0 0 2px #000;
}

.skin-pixel .principle:nth-child(2) .principle__icon {
    background: #4a2e5e;
    color: #ee86ac;
}

.skin-pixel .principle:nth-child(3) .principle__icon {
    background: #24452c;
    color: #58c25c;
}

.skin-pixel .principle:nth-child(4) .principle__icon {
    background: #5a3a1c;
    color: #ec8a3c;
}

.skin-pixel .principle__icon svg {
    stroke-linecap: square;
    stroke-linejoin: miter;
    shape-rendering: crispEdges;
}

.skin-pixel .principle h3 {
    color: var(--p-hot);
    font-size: 2.8rem;
    line-height: 2.8rem;
    font-weight: 400;
}

.skin-pixel .principle p {
    color: var(--p-muted);
    font-size: 2rem;
    line-height: 2.2rem;
}

/* ---------- Experience: the hall of careers ---------- */

.skin-pixel .timeline {
    border-left: 0;
    background: repeating-linear-gradient(to bottom, var(--p-gold-dk) 0 4px, transparent 4px 8px) 0 0 / 4px 100% no-repeat;
}

.skin-pixel .timeline__item::before {
    left: -6px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 0;
    border: 0;
    background: var(--p-cream);
    box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--p-gold);
}

.skin-pixel .timeline__item--current::before {
    background: var(--p-hot);
    animation: pixel-blink 1.1s steps(2, start) infinite;
}

.skin-pixel .timeline__dates {
    color: var(--p-teal);
    font-size: 2rem;
    line-height: 2.2rem;
    font-weight: 400;
}

.skin-pixel .timeline__role {
    color: #fff;
    font-size: 3rem;
    line-height: 3rem;
    font-weight: 400;
}

.skin-pixel .timeline__org {
    color: var(--p-gold);
    font-size: 2.2rem;
}

.skin-pixel .timeline__note,
.skin-pixel .timeline__list {
    font-size: 2.2rem;
    line-height: 2.4rem;
}

.skin-pixel .timeline__list {
    list-style: square;
}

.skin-pixel .timeline__list li::marker {
    color: var(--p-gold);
}

/* ---------- Credentials: the game's dialog boxes ---------- */

.skin-pixel .panel {
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: var(--p-dialog);
    box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--p-frame), 8px 8px 0 4px #000;
    margin: 4px;
}

.skin-pixel .panel + .panel {
    margin-top: 32px;
}

.skin-pixel .credentials {
    gap: 32px;
    align-items: start;
}

.skin-pixel .panel__header {
    background: transparent;
    border-bottom: 2px solid var(--p-line-hi);
    color: var(--p-hot);
    font-size: 2.6rem;
    line-height: 2.6rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.skin-pixel .list-rows li {
    border-bottom: 2px dotted var(--p-line-hi);
}

.skin-pixel .list-rows li:last-child {
    border-bottom: 0;
}

.skin-pixel .list-rows__title {
    font-size: 2.2rem;
    line-height: 2.4rem;
    font-weight: 400;
}

.skin-pixel .list-rows__title a {
    color: var(--p-teal);
}

.skin-pixel .list-rows__title a:hover {
    color: var(--p-hot);
}

.skin-pixel .list-rows__meta,
.skin-pixel .list-rows__sub {
    color: var(--p-muted);
    font-size: 1.9rem;
    line-height: 2.2rem;
}

.skin-pixel .quote p {
    color: #fff;
    font-size: 2.8rem;
    line-height: 2.8rem;
    font-weight: 400;
    text-shadow: var(--p-outline);
}

.skin-pixel .quote footer {
    margin-top: 8px;
    color: var(--p-muted);
    font-size: 1.9rem;
}

/* ---------- Contact: outside the studio ---------- */

.skin-pixel .contact {
    background: #2c2a3c;
}

.skin-pixel .contact .eyebrow {
    color: var(--p-hot);
}

.skin-pixel .contact h2 {
    font-size: 4rem;
    line-height: 4rem;
}

@media (min-width: 768px) {
    .skin-pixel .contact h2 {
        font-size: 5.6rem;
        line-height: 5.2rem;
    }
}

.skin-pixel .contact p {
    color: var(--p-text);
}

.skin-pixel .contact .btn {
    overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

.skin-pixel .site-footer {
    background: var(--p-bg);
    border-top: 2px solid var(--p-line);
    color: var(--p-muted);
    font-size: 2rem;
    line-height: 2.4rem;
}

.skin-pixel .site-footer a {
    color: var(--p-verb);
}

.skin-pixel .site-footer a:hover {
    color: var(--p-hot);
}

/* ---------- Motion: chunky, in steps, like sprites ---------- */

.skin-pixel.motion-ready [data-reveal] {
    transition-timing-function: steps(4, end);
    transition-duration: 0.4s;
}

.skin-pixel .hero .hero__role,
.skin-pixel .hero h1,
.skin-pixel .hero .hero__intro,
.skin-pixel .hero .hero__actions,
.skin-pixel .hero .hero__stats {
    animation-timing-function: steps(4, end);
    animation-duration: 0.4s;
}

@keyframes pixel-blink {
    to { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    .skin-pixel .hero__role::before,
    .skin-pixel .timeline__item--current::before {
        animation: none;
    }
}


/* =====================================================================================
 * Case study pages
 * The same game look as the homepage. Anything meant to be read sits on a solid panel in
 * the pixel font at 22px or more, with no outline; the live demos and prototypes keep their
 * own fonts and colours inside a gallery frame, because they show real product screens.
 * ===================================================================================== */

/* Live demos: back to the product's own type, so recreated screens look as designed */
.skin-pixel .demo,
.skin-pixel .demo-hero__viewport {
    font-family: var(--font-sans);
    font-feature-settings: 'cv08' 1, 'cv05' 1, 'calt' 1, 'liga' 1;
    font-size: 1.6rem;
    line-height: 2.4rem;
    color: var(--fg-default);
    -webkit-font-smoothing: antialiased;
}

/* ---------- Hero: the gallery, where the case studies hang ---------- */

.skin-pixel .case-hero {
    background: #4b4066 url('../images/pixel/gallery-wall.png') center top / max(100%, 640px) auto no-repeat;
    image-rendering: pixelated;
    color: #fff;
}

@media (min-width: 768px) {
    .skin-pixel .case-hero {
        background-size: max(100%, 960px) auto;
    }
}

@media (min-width: 1100px) {
    .skin-pixel .case-hero {
        background-size: max(100%, 1280px) auto;
    }
}

.skin-pixel .case-hero::before,
.skin-pixel .case-hero .hero__glow {
    display: none;
}

.skin-pixel .case-hero .container {
    image-rendering: auto;
}

.skin-pixel .case-hero__back {
    padding: 2px 10px;
    border: 2px solid var(--p-line-hi);
    background: var(--p-panel);
    color: var(--p-verb);
    font-size: 2.2rem;
    line-height: 2.6rem;
}

.skin-pixel .case-hero__back:hover {
    border-color: var(--p-hot);
    color: var(--p-hot);
}

.skin-pixel .case-hero__client {
    display: inline-flex;
    padding: 2px 10px;
    background: var(--p-navy);
    color: var(--p-gold);
    font-size: 2rem;
    line-height: 2.4rem;
    font-weight: 400;
    letter-spacing: 1px;
    box-shadow: 0 0 0 2px #000;
}

.skin-pixel .case-hero h1 {
    font-size: 4.4rem;
    line-height: 4.2rem;
    font-weight: 400;
    letter-spacing: 0;
    text-shadow: var(--p-outline), 4px 6px 0 #000;
}

@media (min-width: 768px) {
    .skin-pixel .case-hero h1 {
        font-size: 7.2rem;
        line-height: 6.4rem;
    }
}

.skin-pixel .case-hero__summary {
    margin-left: 4px;
    margin-right: 4px;
    padding: 14px 18px;
    background: var(--p-dialog);
    box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--p-frame), 8px 8px 0 4px #000;
    color: var(--p-text);
    font-size: 2.4rem;
    line-height: 2.8rem;
}

.skin-pixel .case-meta {
    gap: 12px;
    padding-top: 0;
    border-top: 0;
}

.skin-pixel .case-meta > div {
    padding: 10px 14px;
    background: var(--p-panel);
    box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--p-line-hi);
    margin: 4px;
}

.skin-pixel .case-meta dt {
    color: var(--p-teal);
    font-size: 1.8rem;
    line-height: 2rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.skin-pixel .case-meta dd {
    margin-top: 2px;
    color: #fff;
    font-size: 2.2rem;
    line-height: 2.4rem;
}

/* ---------- Frames round prototypes, demos and pictures: the gallery's gold frames ---------- */

.skin-pixel .prototype,
.skin-pixel .demo-hero .prototype,
.skin-pixel .demo,
.skin-pixel .artefact img,
.skin-pixel .case-shot img,
.skin-pixel .prose figure img {
    border: 0;
    border-radius: 0;
    box-shadow: 0 0 0 2px #000, 0 0 0 6px var(--p-gold), 0 0 0 8px #000, 8px 8px 0 8px #000;
}

.skin-pixel .prototype,
.skin-pixel .demo {
    margin-left: 8px;
    margin-right: 8px;
}

.skin-pixel .demo-hero {
    margin-top: 48px;
}

.skin-pixel .device-browser__bar {
    background: var(--p-panel);
    border-bottom: 2px solid #000;
}

.skin-pixel .prototype .device-browser__bar span,
.skin-pixel .demo-hero .device-browser__bar span {
    border-radius: 0;
    background: var(--p-line-hi);
}

.skin-pixel .prototype .device-browser__url {
    border-radius: 0;
    background: var(--p-bg);
    color: var(--p-teal);
    font-family: var(--p-font);
    font-size: 2rem;
    line-height: 2.4rem;
}

.skin-pixel .prototype__open {
    color: var(--p-hot);
    font-family: var(--p-font);
    font-size: 2rem;
    line-height: 2.4rem;
    font-weight: 400;
}

.skin-pixel .prototype__open:hover {
    color: #fff;
}

/* Captions: on a solid strip, never straight on a scene */
.skin-pixel .demo-hero__caption,
.skin-pixel .case-block figcaption,
.skin-pixel .artefact figcaption,
.skin-pixel .case-shot figcaption,
.skin-pixel .prose figcaption {
    margin-top: 24px;
    color: var(--p-muted);
    font-size: 2rem;
    line-height: 2.4rem;
}

.skin-pixel .demo-hero__caption {
    display: inline-block;
    padding: 6px 12px;
    background: var(--p-panel);
    color: var(--p-text);
}

.skin-pixel .demo-hero__caption a {
    color: var(--p-hot);
}

/* ---------- Story layout (Gearset case studies) ---------- */

.skin-pixel .cs-jtbd .jtbd {
    margin: 4px;
    border-radius: 0;
    background: var(--p-dialog);
    box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--p-frame), 8px 8px 0 4px #000;
}

.skin-pixel .cs-jtbd .jtbd::before {
    top: 12px;
    right: 18px;
    color: var(--p-line-hi);
    font-family: var(--p-font);
    font-size: 16rem;
    font-weight: 400;
}

.skin-pixel .jtbd__label,
.skin-pixel .cs-jtbd .jtbd__label {
    color: var(--p-hot);
    font-size: 2rem;
    line-height: 2.4rem;
    font-weight: 400;
}

.skin-pixel .cs-jtbd .jtbd p {
    color: #fff;
    font-size: 3rem;
    line-height: 3.2rem;
    font-weight: 400;
    letter-spacing: 0;
}

@media (min-width: 768px) {
    .skin-pixel .cs-jtbd .jtbd p {
        font-size: 3.6rem;
        line-height: 3.8rem;
    }
}

.skin-pixel .cs-section {
    border-top: 0;
    background: repeating-conic-gradient(var(--p-line-hi) 0 25%, transparent 0 50%) 0 0 / 8px 8px repeat-x;
}

.skin-pixel .cs-jtbd + .cs-section,
.skin-pixel figure.case-block + .cs-section {
    background: none;
}

.skin-pixel .cs-section__num {
    color: var(--p-teal);
    font-size: 2.4rem;
    line-height: 2.4rem;
    font-weight: 400;
}

.skin-pixel .cs-section__num::after {
    width: 32px;
    height: 4px;
    border-radius: 0;
    background: var(--p-hot);
}

.skin-pixel .cs-section__head h2 {
    color: #fff;
    font-size: 4rem;
    line-height: 4rem;
    font-weight: 400;
    letter-spacing: 0;
    text-shadow: 3px 3px 0 #000;
}

@media (min-width: 768px) {
    .skin-pixel .cs-section__head h2 {
        font-size: 4.8rem;
        line-height: 4.8rem;
    }
}

.skin-pixel .cs-text {
    font-size: 2.6rem;
    line-height: 3rem;
}

.skin-pixel .cs-points {
    gap: 16px;
}

.skin-pixel .cs-points li {
    margin: 4px;
    padding: 14px 18px 14px 56px;
    border: 0;
    border-radius: 0;
    background: var(--p-dialog);
    box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--p-line-hi);
    color: var(--p-text);
    font-size: 2.4rem;
    line-height: 2.8rem;
    transition: none;
}

.skin-pixel .cs-points li:hover {
    border: 0;
    background: var(--p-dialog);
    box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--p-frame);
}

.skin-pixel .cs-points li::before {
    top: 14px;
    color: var(--p-teal);
    font-size: 2.2rem;
    line-height: 2.8rem;
    font-weight: 400;
}

.skin-pixel .cs-lead {
    margin-bottom: 4px;
    color: var(--p-hot);
    font-size: 2.2rem;
    line-height: 2.4rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.skin-pixel .cs-fig {
    color: var(--p-hot);
    font-weight: 400;
    background: none;
}

.skin-pixel .cs-section--research .cs-points li,
.skin-pixel .cs-section--background .cs-points li {
    padding: 48px 18px 16px;
    border-top: 0;
    background: var(--p-dialog);
    box-shadow: inset 0 4px 0 var(--p-hot), 0 0 0 2px #000, 0 0 0 4px var(--p-line-hi);
}

.skin-pixel .cs-section--research .cs-points li::before,
.skin-pixel .cs-section--background .cs-points li::before {
    top: 14px;
    left: 18px;
}

.skin-pixel .cs-section--implementation .cs-points {
    gap: 0;
}

.skin-pixel .cs-section--implementation .cs-points li {
    margin: 0;
    padding: 14px 0 14px 44px;
    background: none;
    box-shadow: none;
    border-bottom: 2px dotted var(--p-line-hi);
}

.skin-pixel .cs-section--implementation .cs-points li:first-child {
    border-top: 2px dotted var(--p-line-hi);
}

.skin-pixel .cs-section--implementation .cs-points li::before {
    top: 18px;
    left: 2px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 0;
    background: #24452c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11' shape-rendering='crispEdges'%3E%3Cpath d='M8 2h2v2H8zM6 4h2v2H6zM4 6h2v2H4zM2 4h2v2H2z' fill='%2358c25c'/%3E%3C/svg%3E") center / 22px no-repeat;
    box-shadow: 0 0 0 2px #000;
}

.skin-pixel .cs-section--outcome {
    margin-left: 8px;
    margin-right: 8px;
    border-radius: 0;
    background: var(--p-navy);
    box-shadow: 0 0 0 2px #000, 0 0 0 6px var(--p-gold), 0 0 0 8px #000, 8px 8px 0 8px #000;
}

.skin-pixel .cs-section--outcome .cs-section__num {
    color: var(--p-teal);
}

.skin-pixel .cs-section--outcome .cs-points li {
    background: #29336a;
    box-shadow: 0 0 0 2px #000;
    color: #fff;
    font-size: 2.4rem;
    line-height: 2.8rem;
}

.skin-pixel .cs-section--outcome .cs-points li:hover {
    background: #29336a;
    box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--p-gold);
}

.skin-pixel .cs-section--outcome .cs-points li::before,
.skin-pixel .cs-section--outcome .cs-lead,
.skin-pixel .cs-section--outcome .cs-fig {
    color: var(--p-hot);
}

/* ---------- Earlier case studies: overview, activities, results, demos ---------- */

.skin-pixel .overview h2 {
    padding-bottom: 6px;
    border-bottom: 4px solid var(--p-gold);
    color: var(--p-hot);
    font-size: 2.6rem;
    line-height: 2.8rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.skin-pixel .overview p {
    font-size: 2.4rem;
    line-height: 2.8rem;
}

.skin-pixel .activities {
    margin-left: 4px;
    margin-right: 4px;
    border: 0;
    border-radius: 0;
    background: var(--p-dialog);
    box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--p-frame), 8px 8px 0 4px #000;
}

.skin-pixel .activities__label {
    color: var(--p-hot);
    font-size: 2rem;
    line-height: 2.4rem;
    font-weight: 400;
}

.skin-pixel .activity__icon {
    border-radius: 0;
    background: #3d4280;
    color: #5ab7f2;
    box-shadow: inset 0 0 0 2px #000;
}

.skin-pixel .activity strong {
    color: #fff;
    font-size: 2.4rem;
    line-height: 2.6rem;
    font-weight: 400;
}

.skin-pixel .activity span {
    color: var(--p-muted);
    font-size: 2rem;
    line-height: 2.4rem;
}

.skin-pixel .results {
    gap: 20px;
}

.skin-pixel .result {
    margin: 4px;
    border: 0;
    border-radius: 0;
    background: var(--p-dialog);
    box-shadow: inset 0 4px 0 var(--p-hot), 0 0 0 2px #000, 0 0 0 4px var(--p-line-hi), 6px 6px 0 4px #000;
}

.skin-pixel .result__value {
    color: var(--p-hot);
    font-size: 4.8rem;
    line-height: 4.8rem;
    font-weight: 400;
    letter-spacing: 0;
}

.skin-pixel .result__label {
    color: var(--p-text);
    font-size: 2.2rem;
    line-height: 2.4rem;
}

.skin-pixel .demo-section__header h2 {
    color: #fff;
    font-size: 3.6rem;
    line-height: 3.6rem;
    font-weight: 400;
    text-shadow: 3px 3px 0 #000;
}

.skin-pixel .demo-section__header p {
    color: var(--p-muted);
}

.skin-pixel .demo-badge {
    padding: 0 8px;
    border-radius: 0;
    background: var(--p-navy);
    color: var(--p-teal);
    font-size: 1.8rem;
    line-height: 2.4rem;
    font-weight: 400;
    letter-spacing: 1px;
    box-shadow: 0 0 0 2px #000;
}

.skin-pixel .demo-badge::before {
    width: 8px;
    height: 8px;
    border-radius: 0;
    background: var(--p-teal);
    animation: pixel-blink 1.1s steps(2, start) infinite;
}

.skin-pixel .prose h2 {
    color: #fff;
    font-size: 3.6rem;
    line-height: 3.6rem;
    font-weight: 400;
    text-shadow: 3px 3px 0 #000;
}

.skin-pixel .prose h3 {
    color: var(--p-hot);
    font-size: 2.8rem;
    line-height: 2.8rem;
    font-weight: 400;
}

.skin-pixel .prose p,
.skin-pixel .prose ul,
.skin-pixel .prose ol {
    font-size: 2.4rem;
    line-height: 2.8rem;
}

.skin-pixel .prose ul {
    list-style: square;
}

.skin-pixel .prose li::marker {
    color: var(--p-gold);
}

.skin-pixel .callout {
    border: 0;
    border-radius: 0;
    background: var(--p-dialog);
    box-shadow: inset 4px 0 0 var(--p-teal), 0 0 0 2px #000;
    font-size: 2.4rem;
    line-height: 2.8rem;
}

.skin-pixel .callout--outcome {
    box-shadow: inset 4px 0 0 #58c25c, 0 0 0 2px #000;
}

/* ---------- Previous / next: doors out of the room ---------- */

.skin-pixel .case-nav {
    gap: 24px;
}

.skin-pixel .case-nav a {
    margin: 4px;
    border: 0;
    border-radius: 0;
    background: var(--p-panel);
    color: #fff;
    box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--p-line-hi), 6px 6px 0 4px #000;
    transition: none;
}

.skin-pixel .case-nav a:hover {
    color: var(--p-hot);
    transform: translate(-2px, -2px);
    box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--p-hot), 8px 8px 0 4px #000;
}

.skin-pixel .case-nav__dir {
    color: var(--p-teal);
    font-size: 2rem;
    line-height: 2.4rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.skin-pixel .case-nav__title {
    font-size: 2.8rem;
    line-height: 3rem;
    font-weight: 400;
}

/* ---------- The password screen: the gallery keypad ---------- */

.skin-pixel .lock-page {
    background: var(--p-bg);
}

.skin-pixel .lock-page:not(.lock-page--framed) .lock {
    margin: 4px;
    padding: 24px;
    background: var(--p-dialog);
    box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--p-frame), 8px 8px 0 4px #000;
}

@media (prefers-reduced-motion: reduce) {
    .skin-pixel .demo-badge::before {
        animation: none;
    }
}

/* ---------- Back to the gallery (js/back.js), on case studies opened from the gallery ---------- */

.gallery-return {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--border-radius-s);
    background: var(--gs-yellow);
    color: var(--gs-navy);
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.gallery-return:hover {
    color: var(--gs-navy);
    background: var(--orange-40);
}

/* Room for the button below the footer */
.from-gallery body {
    padding-bottom: 76px;
}

.skin-pixel .gallery-return {
    border: 2px solid #000;
    border-radius: 0;
    background: var(--p-hot);
    color: var(--p-panel);
    font-family: var(--p-font);
    font-size: 2.6rem;
    line-height: 2.8rem;
    font-weight: 400;
    box-shadow: 4px 4px 0 #000;
}

.skin-pixel .gallery-return:hover {
    background: #fff;
    color: var(--p-panel);
}

/* ---------- The style toggle (both looks) ---------- */

/* The extra header button needs the room on phones: keep the PS mark, drop the name */
@media (max-width: 479px) {
    .skin-toggle__more,
    .wordmark > span:last-child {
        display: none;
    }

    .site-nav ul {
        gap: 2px;
    }

    .site-nav a,
    .skin-toggle {
        padding-left: 8px;
        padding-right: 8px;
        white-space: nowrap;
    }
}

.skin-toggle {
    display: inline-block;
    padding: var(--space-s) var(--token-space-150);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--border-radius-s);
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font: inherit;
    font-size: 1.4rem;
    line-height: 2rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}

.skin-toggle:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.skin-pixel .skin-toggle {
    background: transparent;
    font-family: var(--p-font);
}
