body {
    background-color: #e5e5e5;
    background-image: url("https://www.transparenttextures.com/patterns/concrete-wall.png");
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}
.revamp-page {
    overflow-x: hidden;
    max-width: 100%;
}
.case-card,
.platform-card {
    max-width: 100%;
    overflow: hidden;
}
.case-study-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    min-width: 0;
}
@media (min-width: 640px) {
    .case-study-links {
        grid-template-columns: 1fr 1fr;
    }
}
.case-study-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
.case-study-link > div {
    min-width: 0;
    flex: 1 1 auto;
}
.case-study-link .case-study-url {
    font-size: clamp(0.7rem, 3.2vw, 1.125rem);
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
}
.case-study-link .case-study-arrow {
    flex-shrink: 0;
}
.case-study-link__cta {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0;
}
.case-study-link--legacy .case-study-link__cta {
    color: #111;
}
.case-study-link--upgrade .case-study-link__cta {
    color: inherit;
}
.case-study-link--upgrade {
    animation: case-study-upgrade-pulse 2.2s ease-in-out infinite;
}
@keyframes case-study-upgrade-pulse {
    0%, 100% {
        box-shadow: 6px 6px 0 #111, 0 0 0 0 rgba(236, 72, 153, 0);
    }
    50% {
        box-shadow: 8px 8px 0 #111, 0 0 22px 4px var(--accent, #ec4899);
    }
}
@media (prefers-reduced-motion: reduce) {
    .case-study-link--upgrade {
        animation: none;
    }
}

.phone-compare {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 4vw, 2rem);
    padding: 1.5rem 1rem 1.25rem;
    background: linear-gradient(145deg, #141414 0%, #2a2a2a 100%);
    border: 4px solid #09090b;
    box-shadow: 10px 10px 0 var(--shadow, #111);
}
.phone-compare-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    max-width: 46%;
}
@media (max-width: 639px) {
    .phone-compare {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.25rem 0.75rem 1rem;
    }
    .phone-compare-panel {
        max-width: 100%;
        width: 100%;
    }
    .phone-compare-frame {
        max-width: min(200px, 78vw);
    }
    .phone-compare-vs {
        transform: none;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.65);
    }
}
.phone-compare-frame {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 390 / 844;
    border: 3px solid #09090b;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.88);
}
.phone-compare-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.phone-compare--randy .phone-compare-frame {
    aspect-ratio: 519 / 1024;
}
.phone-compare--randy .phone-compare-frame img {
    object-fit: fill;
}
.phone-compare-tag {
    margin-top: 0.65rem;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.25;
    max-width: 100%;
    padding: 5px 8px;
    border: 2px solid #09090b;
}
.phone-compare-tag--before {
    background: #fff;
    color: #111;
}
.phone-compare-tag--after {
    background: var(--primary, #111);
    color: #fff;
}
.phone-compare-vs {
    flex-shrink: 0;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.45);
    transform: rotate(-4deg);
}
@media (min-width: 768px) {
    .phone-compare-frame {
        max-width: 260px;
    }
}
@media (min-width: 768px) and (pointer: fine) {
    body.revamp-page { cursor: none; }
}
.marker-font { font-family: 'Permanent Marker', cursive; }
.inter-black { font-family: 'Inter', sans-serif; font-weight: 900; }
.splatter { position: fixed; border-radius: 50%; filter: blur(80px); z-index: -1; opacity: 0.28; pointer-events: none; }
#custom-cursor {
    display: none !important;
    width: 24px; height: 24px;
    background: var(--accent, #ff00ff);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.15s ease-out;
}
@media (min-width: 768px) and (pointer: fine) {
    #custom-cursor { display: block !important; }
}
.case-card {
    border: 4px solid black;
    background: var(--card-bg, #fff);
    box-shadow: 12px 12px 0 var(--shadow, #111);
}
.compare-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 4px solid black;
    background: #111;
    user-select: none;
    touch-action: none;
}
.compare-shell img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    pointer-events: none;
}
.compare-after { clip-path: inset(0 0 0 50%); }
.compare-handle {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 4px;
    background: #fff;
    transform: translateX(-50%);
    z-index: 20;
    box-shadow: 0 0 12px rgba(0,0,0,0.5);
}
.compare-handle::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent, #ff00ff);
    border: 3px solid black;
    box-shadow: 4px 4px 0 black;
}
.compare-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 30;
    margin: 0;
}
.compare-label {
    position: absolute;
    top: 12px;
    z-index: 15;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 12px;
    border: 2px solid black;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.compare-label--before { left: 12px; background: #fff; color: #111; }
.compare-label--after { right: 12px; background: var(--primary, #111); color: #fff; }
@media (prefers-reduced-motion: reduce) {
    .compare-label { transition: none; }
}
.savings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}
.savings-table th,
.savings-table td {
    border: 2px solid #000;
    padding: 0.65rem 0.75rem;
    text-align: left;
    vertical-align: top;
}
.savings-table thead th {
    background: #000;
    color: #fff;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.savings-table tbody tr:nth-child(even) { background: rgba(0, 0, 0, 0.04); }
.savings-table tr.savings-highlight th,
.savings-table tr.savings-highlight td {
    background: rgba(255, 0, 255, 0.12);
    box-shadow: inset 4px 0 0 var(--accent, #ff00ff);
}
.savings-owned-intro {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}
@media (min-width: 768px) {
    .savings-owned-intro {
        grid-template-columns: repeat(3, 1fr);
    }
}
.savings-owned-card {
    border: 3px solid #000;
    padding: 1rem 1.1rem;
    background: #fff;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.75);
}
.savings-owned-card h3 {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.savings-owned-card p {
    font-size: 0.8rem;
    line-height: 1.55;
    color: #1e293b;
}
.savings-disclaimer {
    font-size: 0.7rem;
    color: #475569;
    line-height: 1.5;
    margin-top: 0.75rem;
}
.platform-card {
    border: 4px solid black;
    background: linear-gradient(135deg, var(--primary) 0%, #111 100%);
    color: #fff;
    box-shadow: 14px 14px 0 var(--accent);
}
.showcase-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}
.showcase-logo__copy {
    width: 100%;
    min-width: 0;
}
.showcase-logo img {
    width: min(200px, 65vw);
    max-width: 200px;
    height: auto;
    flex-shrink: 0;
    border: 4px solid #111;
    box-shadow: 8px 8px 0 var(--shadow, #111);
    background: #fff;
    border-radius: 50%;
}
@media (min-width: 768px) {
    .showcase-logo {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
    .showcase-logo__copy {
        flex: 1;
        max-width: 42rem;
    }
    .showcase-logo img {
        width: min(260px, 36%);
        max-width: 280px;
    }
}
.lang-pair {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) {
    .lang-pair {
        grid-template-columns: 1fr 1fr;
    }
}
.lang-pair figure {
    margin: 0;
    border: 4px solid #111;
    overflow: hidden;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.85);
}
.lang-pair figcaption {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem;
    background: #111;
    color: #fff;
}
.lang-pair img {
    display: block;
    width: 100%;
    height: auto;
}

/* Classes with Cory case study — whole-page language switch */
.case-lang-bar {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    padding: 0.85rem 1rem;
    border: 4px solid #09090b;
    background: var(--accent, #c9a227);
    box-shadow: 8px 8px 0 var(--primary, #1e3a5f);
}
.case-lang-bar__lead {
    margin: 0;
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
    color: #111;
    line-height: 1.2;
    flex: 1 1 12rem;
}
.lingua-franca-case.is-lang-switching {
    animation: case-lang-page-fade 0.28s ease;
}
@keyframes case-lang-page-fade {
    0% { opacity: 0.72; }
    100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .lingua-franca-case.is-lang-switching {
        animation: none;
    }
}

/* Legacy mini demo (unused) */
.lang-demo {
    border: 4px solid #09090b;
    background: #f4f6fa;
    box-shadow: 12px 12px 0 var(--shadow, #1e3a5f);
    overflow: hidden;
}
.lang-demo__prompt {
    margin: 0;
    padding: 0.85rem 1.25rem;
    background: var(--accent, #c9a227);
    color: #111;
    font-size: clamp(1rem, 4vw, 1.35rem);
    text-align: center;
    border-bottom: 4px solid #09090b;
}
.lang-demo__chrome {
    background: #fff;
}
.lang-demo__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid rgba(30, 58, 95, 0.12);
    background: rgba(255, 255, 255, 0.98);
}
.lang-demo__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    font-family: 'Urbanist', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary, #1e3a5f);
    letter-spacing: -0.02em;
}
.lang-demo__brand img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #09090b;
    flex-shrink: 0;
}
.lang-demo__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}
.lang-demo__nav span {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary, #1e3a5f);
    padding: 0.2rem 0;
    border-bottom: 2px solid transparent;
}
.lang-demo__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}
.lang-demo__switch {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 3px;
    padding: 3px;
    border-radius: 999px;
    border: 2px solid rgba(30, 58, 95, 0.2);
    background: #eef2f7;
    max-width: 100%;
}
.lang-demo__switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.45rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--primary, #1e3a5f);
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.lang-demo__switch-btn.is-active {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.lang-demo__switch-btn:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.65);
}
.lang-demo__switch-flag {
    font-size: 0.95rem;
    line-height: 1;
}
.lang-demo__book {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    background: var(--primary, #1e3a5f);
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 2px solid #09090b;
    box-shadow: 3px 3px 0 rgba(201, 162, 39, 0.9);
}
.lang-demo__preview {
    padding: 1.25rem 1.25rem 1.5rem;
    background: linear-gradient(165deg, #f8f6f0 0%, #eef3f8 55%, #e8eef5 100%);
    transition: opacity 0.22s ease;
}
.lang-demo__preview.is-switching {
    animation: lang-demo-fade 0.32s ease;
}
@keyframes lang-demo-fade {
    0% { opacity: 0.55; }
    100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .lang-demo__preview.is-switching {
        animation: none;
    }
}
.lang-demo__badge {
    display: inline-block;
    margin: 0 0 0.75rem;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary, #1e3a5f);
    padding: 0.35rem 0.65rem;
    border: 2px solid rgba(30, 58, 95, 0.25);
    background: rgba(255, 255, 255, 0.85);
}
.lang-demo__hero-title {
    margin: 0 0 0.65rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 900;
    font-size: clamp(1.05rem, 4.2vw, 1.55rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--primary, #1e3a5f);
}
.lang-demo__hero-sub {
    margin: 0 0 1rem;
    font-family: 'Bitter', Georgia, serif;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #334155;
    max-width: 40rem;
}
.lang-demo__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.68rem;
    font-weight: 700;
    color: #475569;
}
.lang-demo__trust li::before {
    content: "● ";
    color: var(--accent, #c9a227);
}
.lang-demo__status {
    margin: 0;
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.45;
    color: #fff;
    background: var(--primary, #1e3a5f);
    border-top: 4px solid #09090b;
}
.lang-demo__footnote {
    margin: 1rem 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #64748b;
    max-width: 42rem;
}
.lang-demo__footnote strong {
    color: var(--primary, #1e3a5f);
}
@media (min-width: 768px) {
    .lang-demo__header {
        flex-wrap: nowrap;
        padding: 0.85rem 1.25rem;
    }
    .lang-demo__nav span {
        font-size: 0.68rem;
    }
    .lang-demo__switch-btn {
        font-size: 0.62rem;
        padding: 0.35rem 0.55rem;
    }
}
@media (max-width: 479px) {
    .lang-demo__actions {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
    }
    .lang-demo__book {
        margin-left: auto;
    }
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
@media (min-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 479px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
}
.photo-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 3px solid #111;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.7);
}
.photo-grid .photo-grid__hero {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
    max-height: 320px;
}
@media (prefers-reduced-motion: reduce) {
    .compare-handle { transition: none; }
}

/* List rows: flex + inline <strong> splits text into side-by-side columns — use block flow */
.case-card li.flex,
.platform-card li.flex,
.wl-card li.flex,
section.border-4 li.flex {
    display: block;
    position: relative;
    padding-left: 1.35rem;
}
.case-card li.flex > span:first-child,
.platform-card li.flex > span:first-child,
.wl-card li.flex > span:first-child,
section.border-4 li.flex > span:first-child {
    position: absolute;
    left: 0;
    top: 0.12em;
    line-height: 1.2;
}
.case-card li.flex strong,
.platform-card li.flex strong,
.wl-card li.flex strong,
section.border-4 li.flex strong {
    display: inline;
    font-weight: 900;
}

/* Case study pages — mobile polish */
@media (max-width: 767px) {
    body.p-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    body.pb-40 {
        padding-bottom: 8.5rem;
    }
    .case-card,
    .platform-card,
    .wl-card,
    section.border-4.p-8 {
        padding: 1.25rem !important;
    }
    [class*="rotate-"] {
        transform: none !important;
    }
    .case-study-link {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .case-study-link__cta {
        font-size: clamp(0.9rem, 4.2vw, 1.1rem);
        line-height: 1.35;
    }
    .revamp-page header h1,
    body.revamp-page > header h1 {
        font-size: clamp(2rem, 11vw, 3.25rem) !important;
        line-height: 0.95;
    }
}
