/* ============================================================
   Case study page — "engineering dossier"
   Brand forest green + amber, blueprint grid, mono spec labels.
   Loaded after site.css on /projects/{key} only.
   ============================================================ */

.page-project {
    --cs-deep:      #04230c;
    --cs-forest:    #0c501a;
    --cs-moss:      #1a7a4a;
    --cs-amber:     #FFB400;
    --cs-amber-ink: #3a2a00;
    --cs-paper:     #f6f8f3;
    --cs-ink:       #0d1f12;
    --cs-muted:     #4f6457;
    --cs-line:      #d6e3d9;
    --cs-mono:      'JetBrains Mono', ui-monospace, monospace;
    --cs-display:   'Syne', sans-serif;
    --cs-ease:      cubic-bezier(0.16, 1, 0.3, 1);

    background: var(--cs-paper);
    color: var(--cs-ink);
}

.cs-container { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.cs-section { padding: clamp(4rem, 8vw, 7rem) 0; }

/* ── Hero ───────────────────────────────────────────────── */
.cs-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(7.5rem, 12vw, 9.5rem) 0 3rem;
    color: #fff;
    background:
        radial-gradient(60% 70% at 85% 30%, rgba(255, 180, 0, 0.18) 0%, transparent 60%),
        radial-gradient(50% 60% at 10% 100%, rgba(26, 122, 74, 0.55) 0%, transparent 70%),
        linear-gradient(160deg, var(--cs-deep) 0%, var(--cs-forest) 100%);
}
/* Blueprint grid fading out towards the edges */
.cs-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}
/* Film grain */
.cs-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.07;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.cs-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.cs-hero-text { container-type: inline-size; min-width: 0; }

.cs-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-family: var(--cs-mono);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 2rem;
}
.cs-crumbs a { color: rgba(255,255,255,0.75); text-decoration: none; }
.cs-crumbs a:hover { color: var(--cs-amber); }
.cs-crumbs [aria-current] { color: #fff; }

.cs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--cs-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cs-amber);
    margin-bottom: 1rem;
}
.cs-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--cs-amber); }

.cs-title {
    font-family: var(--cs-display);
    font-weight: 800;
    /* Starts from the text column's width; the page script shrinks names that still overflow */
    font-size: clamp(2.2rem, 12.5cqi, 5.6rem);
    white-space: nowrap;
    line-height: 0.95;
    letter-spacing: -0.035em;
    color: #fff;
    margin-bottom: 1.2rem;
}

.cs-tagline {
    font-family: var(--cs-display);
    font-weight: 700;
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    line-height: 1.3;
    color: rgba(255,255,255,0.92);
    margin-bottom: 1rem;
    max-width: 34ch;
}

.cs-summary {
    font-weight: 300;
    font-size: 1.02rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.72);
    max-width: 58ch;
    margin-bottom: 2rem;
}

.cs-actions, .cs-cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.cs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform 0.25s var(--cs-ease), background 0.25s, box-shadow 0.25s, color 0.25s;
}
.cs-btn:hover { transform: translateY(-2px); text-decoration: none; }
.cs-btn-amber { background: var(--cs-amber); color: var(--cs-amber-ink); box-shadow: 0 10px 30px -10px rgba(255,180,0,0.7); }
.cs-btn-amber:hover { background: #ffc633; color: var(--cs-amber-ink); }
.cs-btn-ghost { border: 1.5px solid rgba(255,255,255,0.45); color: #fff; }
.cs-btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }

/* Logo tile with orbit rings */
.cs-hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    max-width: 420px;
    width: 100%;
    justify-self: center;
}
.cs-logo-tile {
    position: relative;
    z-index: 1;
    width: 64%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: 12%;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6), 0 0 0 8px rgba(255,255,255,0.06);
    transform: rotate(-4deg);
    transition: transform 0.6s var(--cs-ease);
}
.cs-hero-visual:hover .cs-logo-tile { transform: rotate(0deg) scale(1.02); }
.cs-logo-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cs-logo-fallback {
    font-family: var(--cs-display);
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--cs-forest);
    letter-spacing: -0.04em;
}
.cs-orbit {
    position: absolute;
    inset: 0;
    border: 1px dashed rgba(255,255,255,0.18);
    border-radius: 50%;
    animation: cs-spin 60s linear infinite;
}
.cs-orbit-2 { inset: 12%; border-style: solid; border-color: rgba(255,180,0,0.25); animation-duration: 40s; animation-direction: reverse; }
.cs-orbit-2::after {
    content: '';
    position: absolute;
    top: -5px; left: 50%;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--cs-amber);
    box-shadow: 0 0 16px var(--cs-amber);
}
@keyframes cs-spin { to { transform: rotate(360deg); } }

/* Spec sheet */
.cs-specs {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(2.5rem, 5vw, 4rem);
    border-top: 1px solid rgba(255,255,255,0.18);
}
.cs-specs > div { padding: 1.2rem 1.2rem 0 0; }
.cs-specs > div + div { padding-left: 1.2rem; border-left: 1px solid rgba(255,255,255,0.12); }
.cs-specs dt {
    font-family: var(--cs-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.35rem;
}
.cs-specs dd { margin: 0; font-weight: 600; font-size: 0.95rem; color: #fff; }

.cs-status { display: inline-flex; align-items: center; gap: 0.5rem; }
.cs-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #9aa9a0; }
.cs-status.is-live::before { background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,0.6); animation: cs-pulse 2s infinite; }
@keyframes cs-pulse {
    70%  { box-shadow: 0 0 0 8px rgba(61,220,132,0); }
    100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); }
}

/* Orchestrated load-in */
.cs-rise { opacity: 0; animation: cs-rise 0.9s var(--cs-ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
@keyframes cs-rise {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
}

/* ── Shared section type ────────────────────────────────── */
.cs-kicker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--cs-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cs-moss);
    margin-bottom: 0.9rem;
}
.cs-kicker span {
    display: inline-grid;
    place-items: center;
    padding: 0.15rem 0.45rem;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-size: 0.7rem;
}
.cs-kicker-light { color: var(--cs-amber); }

.cs-h2 {
    font-family: var(--cs-display);
    font-weight: 800;
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--cs-ink);
    margin-bottom: 1.4rem;
}

/* ── Overview ───────────────────────────────────────────── */
.cs-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}
.cs-lead { font-weight: 300; font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.8; color: var(--cs-muted); max-width: 62ch; }

.cs-stack {
    background: #fff;
    border: 1px solid var(--cs-line);
    border-radius: 16px;
    padding: 1.6rem;
    box-shadow: 0 20px 50px -35px rgba(12,80,26,0.45);
}
.cs-stack-title {
    font-family: var(--cs-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cs-muted);
    margin-bottom: 1rem;
}
.cs-stack ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cs-stack li {
    font-family: var(--cs-mono);
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    background: var(--cs-paper);
    border: 1px solid var(--cs-line);
    color: var(--cs-forest);
}

/* ── Screens rail ───────────────────────────────────────── */
.cs-screens {
    background:
        radial-gradient(50% 80% at 0% 0%, rgba(26,122,74,0.35) 0%, transparent 60%),
        var(--cs-deep);
    color: #fff;
    overflow: hidden;
}
.cs-screens .cs-h2 { color: #fff; margin-bottom: 0; }
.cs-screens-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.cs-rail-controls { display: flex; align-items: center; gap: 0.6rem; }
.cs-count { font-family: var(--cs-mono); font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-right: 0.4rem; }
.cs-rail-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.cs-rail-btn:hover { background: var(--cs-amber); border-color: var(--cs-amber); color: var(--cs-amber-ink); }

.cs-rail {
    list-style: none;
    margin: 0;
    display: flex;
    gap: clamp(1rem, 2.5vw, 1.75rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(1rem, (100% - 1180px) / 2);
    padding: 0.5rem max(1rem, (100% - 1180px) / 2) 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) transparent;
}
.cs-rail li { flex: 0 0 auto; scroll-snap-align: start; }

/* Phone bezel */
.cs-phone {
    display: block;
    width: clamp(170px, 22vw, 230px);
    aspect-ratio: 9 / 19.5;
    padding: 8px;
    border: 0;
    border-radius: 30px;
    background: linear-gradient(145deg, #1c2a21, #050a07);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 30px 60px -25px rgba(0,0,0,0.8);
    cursor: zoom-in;
    transition: transform 0.4s var(--cs-ease), box-shadow 0.4s;
}
.cs-phone:hover { transform: translateY(-8px); box-shadow: 0 0 0 1px rgba(255,180,0,0.6), 0 40px 70px -25px rgba(0,0,0,0.9); }
.cs-phone img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 23px;
    background: #111;
}

.cs-hint { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 0.5rem; }
.cs-hint i { margin-right: 0.4rem; }

/* ── Scope ──────────────────────────────────────────────── */
.cs-scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 1rem; }
.cs-scope-col h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cs-ink);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--cs-ink);
}
.cs-scope-col h3 i { color: var(--cs-moss); }

.cs-list { list-style: none; counter-reset: cs; padding: 0; margin: 0; }
.cs-list li {
    counter-increment: cs;
    display: grid;
    grid-template-columns: 2.6rem 1fr;
    align-items: baseline;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--cs-line);
    font-size: 0.98rem;
    color: var(--cs-ink);
    transition: padding-left 0.3s var(--cs-ease), color 0.3s;
}
.cs-list li::before {
    content: counter(cs, decimal-leading-zero);
    font-family: var(--cs-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cs-moss);
}
.cs-list li:hover { padding-left: 0.4rem; color: var(--cs-forest); }

/* ── CTA band ───────────────────────────────────────────── */
.cs-cta {
    position: relative;
    background: var(--cs-amber);
    color: var(--cs-amber-ink);
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    overflow: hidden;
}
.cs-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(-45deg, rgba(0,0,0,0.04) 0 2px, transparent 2px 14px);
    pointer-events: none;
}
.cs-cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cs-cta h2 {
    font-family: var(--cs-display);
    font-weight: 800;
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--cs-deep);
    margin-bottom: 0.5rem;
}
.cs-cta p { margin: 0; max-width: 52ch; color: rgba(4,35,12,0.75); }
.cs-cta .cs-btn-amber { background: var(--cs-deep); color: #fff; box-shadow: none; }
.cs-cta .cs-btn-amber:hover { background: var(--cs-forest); color: #fff; }
.cs-cta .cs-btn-ghost { border-color: rgba(4,35,12,0.45); color: var(--cs-deep); }
.cs-cta .cs-btn-ghost:hover { background: rgba(4,35,12,0.08); border-color: var(--cs-deep); color: var(--cs-deep); }

/* ── Pager + more ───────────────────────────────────────── */
.cs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.cs-pager-link {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--cs-line);
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.3s, transform 0.3s var(--cs-ease);
}
.cs-pager-link:hover { border-color: var(--cs-moss); transform: translateY(-3px); text-decoration: none; }
.cs-pager-link.is-next { text-align: right; align-items: flex-end; }
.cs-pager-dir { font-family: var(--cs-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cs-muted); }
.cs-pager-name { font-family: var(--cs-display); font-weight: 800; font-size: clamp(1.2rem, 2.5vw, 1.7rem); letter-spacing: -0.02em; color: var(--cs-ink); }

.cs-more-title { font-family: var(--cs-mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cs-muted); margin-bottom: 1.2rem; }
.cs-more-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.cs-more-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.2rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--cs-line);
    text-decoration: none;
    transition: transform 0.3s var(--cs-ease), box-shadow 0.3s;
}
.cs-more-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -25px rgba(12,80,26,0.5); text-decoration: none; }
.cs-more-logo { height: 48px; display: flex; align-items: center; margin-bottom: 1rem; }
.cs-more-logo img { max-height: 48px; max-width: 100%; object-fit: contain; }
.cs-more-logo .cs-logo-fallback { font-size: 2rem; }
.cs-more-name { font-weight: 700; color: var(--cs-ink); }
.cs-more-cat { font-size: 0.8rem; color: var(--cs-muted); }

/* ── Lightbox ───────────────────────────────────────────── */
.cs-lightbox {
    width: 100vw; height: 100dvh;
    max-width: none; max-height: none;
    margin: 0;
    padding: 1rem;
    border: 0;
    background: transparent;
    color: #fff;
}
.cs-lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; }
.cs-lightbox::backdrop { background: rgba(2, 15, 6, 0.92); backdrop-filter: blur(6px); }
.cs-lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; height: 100%; justify-content: center; min-width: 0; }
.cs-lb-figure img { max-height: calc(100dvh - 5rem); max-width: 100%; object-fit: contain; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.cs-lb-figure figcaption { font-family: var(--cs-mono); font-size: 0.8rem; color: rgba(255,255,255,0.65); }
.cs-lb-nav, .cs-lb-close {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.cs-lb-nav:hover, .cs-lb-close:hover { background: var(--cs-amber); color: var(--cs-amber-ink); border-color: var(--cs-amber); }
.cs-lb-close { position: absolute; top: 1rem; right: 1rem; z-index: 1; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .cs-hero-inner, .cs-overview-grid, .cs-scope-grid { grid-template-columns: 1fr; }
    .cs-hero-visual { max-width: 260px; order: -1; justify-self: start; }
    .cs-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cs-specs > div:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 600px) {
    .cs-hero-visual { max-width: 132px; }
    .cs-hero { padding-top: 6.5rem; }
    .cs-crumbs { margin-bottom: 1.2rem; }
    .cs-actions .cs-btn, .cs-cta-actions .cs-btn { flex: 1 1 100%; }
    .cs-rail-btn { display: none; }
    .cs-pager { grid-template-columns: 1fr; }
    .cs-pager-link.is-next { text-align: left; align-items: flex-start; }
    .cs-lightbox[open] { grid-template-columns: 1fr; }
    .cs-lb-nav { position: absolute; bottom: 1rem; }
    .cs-lb-nav.is-prev { left: 1rem; }
    .cs-lb-nav.is-next { right: 1rem; }
    .cs-lb-figure img { max-height: calc(100dvh - 9rem); }
}

@media (prefers-reduced-motion: reduce) {
    .cs-rise { opacity: 1; animation: none; }
    .cs-orbit, .cs-status.is-live::before { animation: none; }
    .cs-rail { scroll-behavior: auto; }
}

/* ── Google Play ────────────────────────────────────────── */
.cs-play { background: #fff; border-top: 1px solid var(--cs-line); }
.cs-play-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
    margin-top: 1rem;
}

.cs-play-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.6rem, 3vw, 2.2rem);
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(80% 60% at 100% 0%, rgba(255,180,0,0.22) 0%, transparent 60%),
        linear-gradient(160deg, var(--cs-deep), var(--cs-forest));
    box-shadow: 0 30px 60px -35px rgba(4,35,12,0.8);
}
.cs-play-score { display: flex; align-items: center; gap: 1.1rem; }
.cs-play-rating {
    /* Syne's full stop reads as a dash, so the score uses the body face */
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(3.8rem, 8vw, 5rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
}
.cs-stars { display: flex; gap: 0.2rem; color: var(--cs-amber); font-size: 1.05rem; }
.cs-stars-small { font-size: 0.85rem; }
.cs-play-count { margin: 0.35rem 0 0; font-family: var(--cs-mono); font-size: 0.78rem; color: rgba(255,255,255,0.65); }

.cs-play-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 1.6rem 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.cs-play-stats > div { padding: 0.9rem 0; }
.cs-play-stats > div + div { padding-left: 1rem; border-left: 1px solid rgba(255,255,255,0.12); }
.cs-play-stats dt { font-family: var(--cs-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.cs-play-stats dd { margin: 0.2rem 0 0; font-family: var(--cs-display); font-weight: 800; font-size: 1.35rem; }
.cs-play-stats dd i { font-size: 1rem; color: var(--cs-amber); }
.cs-play-stats dd.cs-play-store { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1rem; margin-top: 0.45rem; white-space: nowrap; }

.cs-play-side { display: grid; gap: 1rem; }
.cs-try {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1.5rem 1.6rem;
    border-radius: 16px;
    border: 1.5px dashed var(--cs-moss);
    background: repeating-linear-gradient(-45deg, rgba(26,122,74,0.04) 0 2px, transparent 2px 12px);
}
.cs-try h3 { font-family: var(--cs-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--cs-ink); margin-bottom: 0.25rem; }
.cs-try p { margin: 0; font-size: 0.88rem; color: var(--cs-muted); }
.cs-btn-dark { background: var(--cs-deep); color: #fff; }
.cs-btn-dark:hover { background: var(--cs-forest); color: #fff; }

.cs-histogram { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.45rem; }
.cs-histogram li { display: grid; grid-template-columns: 2.2rem 1fr 1.6rem; align-items: center; gap: 0.6rem; font-family: var(--cs-mono); font-size: 0.75rem; }
.cs-histogram-label { display: inline-flex; align-items: center; gap: 0.25rem; color: rgba(255,255,255,0.75); }
.cs-histogram-label i { font-size: 0.6rem; color: var(--cs-amber); }
.cs-histogram-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.12); overflow: hidden; }
.cs-histogram-bar span { display: block; height: 100%; border-radius: inherit; background: var(--cs-amber); }
.cs-histogram-count { text-align: right; color: rgba(255,255,255,0.6); }

.cs-play-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.88rem; color: var(--cs-amber); text-decoration: none; }
.cs-play-link:hover { color: #fff; text-decoration: none; }

.cs-reviews { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.cs-review {
    position: relative;
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--cs-line);
    border-radius: 16px;
    background: var(--cs-paper);
}
.cs-review::before {
    content: '“';
    position: absolute;
    top: -0.2rem; right: 1.2rem;
    font-family: var(--cs-display);
    font-size: 5rem;
    line-height: 1;
    color: var(--cs-line);
}
.cs-review blockquote {
    margin: 0.8rem 0 1.1rem;
    font-family: var(--cs-display);
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--cs-ink);
}
.cs-review-meta { display: flex; align-items: center; gap: 0.75rem; margin: 0; font-size: 0.8rem; color: var(--cs-muted); line-height: 1.4; }
.cs-review-meta strong { color: var(--cs-ink); }
.cs-review-avatar {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--cs-forest);
    color: #fff;
    font-weight: 700;
}
.cs-play-note { margin: 1.5rem 0 0; font-family: var(--cs-mono); font-size: 0.72rem; color: var(--cs-muted); }

@media (max-width: 900px) {
    .cs-play-grid { grid-template-columns: 1fr; }
}

/* ── Desktop / Mobile toggle ────────────────────────────── */
.cs-view-toggle {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    margin-right: 0.4rem;
}
.cs-view-toggle button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0 1.1rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.25s var(--cs-ease), color 0.25s;
}
.cs-view-toggle button:hover { color: #fff; }
.cs-view-toggle button[aria-selected="true"] { background: var(--cs-amber); color: var(--cs-amber-ink); }
.cs-rail[hidden] { display: none; }

/* ── Browser frame ──────────────────────────────────────── */
.cs-browser {
    display: block;
    width: clamp(300px, 62vw, 760px);
    padding: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #0f1a13;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 30px 60px -25px rgba(0,0,0,0.85);
    cursor: zoom-in;
    text-align: left;
    transition: transform 0.4s var(--cs-ease), box-shadow 0.4s;
}
.cs-browser:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(255,180,0,0.6), 0 40px 70px -25px rgba(0,0,0,0.9); }
.cs-browser-bar {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.6rem 0.9rem;
    background: linear-gradient(#1f2d24, #18241c);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cs-browser-dots { display: flex; gap: 6px; }
.cs-browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.cs-browser-dots i:nth-child(2) { background: #febc2e; }
.cs-browser-dots i:nth-child(3) { background: #28c840; }
.cs-browser-url {
    flex: 1;
    max-width: 340px;
    margin-inline: auto;
    padding: 0.25rem 0.8rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.07);
    font-family: var(--cs-mono);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.65);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cs-browser-url i { font-size: 0.6rem; margin-right: 0.3rem; color: #3ddc84; }
.cs-browser img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #111; }

/* Desktop screens in the lightbox use the full width */
.cs-lightbox.is-desktop .cs-lb-figure img { border-radius: 10px; max-width: min(100%, 1400px); }

@media (max-width: 600px) {
    .cs-browser { width: 86vw; }
    .cs-browser-bar { padding: 0.45rem 0.7rem; }
    .cs-browser-dots i { width: 8px; height: 8px; }
    .cs-screens-head { align-items: flex-start; }
    .cs-view-toggle { margin-right: 0; }
}

/* ── AI-powered tag and "AI inside" ─────────────────────── */
.cs-eyebrow { flex-wrap: wrap; }
.cs-ai-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.4rem;
    padding: 0.25rem 0.7rem;
    border: 1px solid rgba(255,180,0,0.6);
    border-radius: 999px;
    background: rgba(255,180,0,0.12);
    color: var(--cs-amber);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.cs-ai-tag:hover { background: var(--cs-amber); color: var(--cs-amber-ink); text-decoration: none; }

.cs-ai {
    position: relative;
    background:
        radial-gradient(60% 90% at 100% 0%, rgba(255,180,0,0.14) 0%, transparent 60%),
        linear-gradient(160deg, #eef5ef 0%, var(--cs-paper) 100%);
    border-top: 1px solid var(--cs-line);
}
.cs-ai-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.cs-ai-note { display: flex; gap: 0.6rem; font-size: 0.92rem; line-height: 1.6; color: var(--cs-muted); margin: -0.4rem 0 1.2rem; }
.cs-ai-note i { color: var(--cs-moss); margin-top: 0.2rem; }
.cs-ai-link { font-weight: 700; font-size: 0.9rem; color: var(--cs-forest); text-decoration: none; }
.cs-ai-link:hover { text-decoration: underline; }
.cs-ai-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.cs-ai-list li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--cs-line);
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--cs-ink);
    transition: border-color 0.25s, transform 0.25s var(--cs-ease);
}
.cs-ai-list li:hover { border-color: var(--cs-moss); transform: translateX(4px); }
.cs-ai-list i {
    flex-shrink: 0;
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--cs-deep), var(--cs-forest));
    color: var(--cs-amber);
    font-size: 0.8rem;
}
.cs-more-ai {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.3rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: var(--cs-deep);
    color: var(--cs-amber);
    font-family: var(--cs-mono);
    font-size: 0.62rem;
    font-weight: 700;
    vertical-align: middle;
}
.cs-more-ai i { font-size: 0.58rem; }

@media (max-width: 900px) {
    .cs-ai-grid { grid-template-columns: 1fr; }
}
