/* ==========================================================================
   skillcat.css — SkillCat case study
   Dark navy theme (matches the portfolio) with SkillCat orange (#E8552E)
   as the accent, used sparingly for section markers and interactive states.
   ========================================================================== */

:root {
    --sk-bg: #000C19;
    --sk-text: #ffffff;
    --sk-muted: rgba(255, 255, 255, 0.62);
    --sk-faint: rgba(255, 255, 255, 0.40);
    --sk-surface: rgba(255, 255, 255, 0.05);
    --sk-surface-2: rgba(255, 255, 255, 0.08);
    --sk-border: rgba(255, 255, 255, 0.12);
    --sk-orange: #E8552E;
    --sk-orange-2: #ff8a5c;
    --sk-orange-soft: rgba(232, 85, 46, 0.14);
    /* Headings — the portfolio's primary display font. */
    --sk-serif: 'Fira Sans', sans-serif;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    background-color: var(--sk-bg);
    /* Page-wide brand wash (Nocta-style): a soft upper-center glow over the
       dark base — behind everything, scrolling away past the hero. */
    background-image:
        radial-gradient(1100px 760px at 50% 22vh, rgba(232, 85, 46, 0.26) 0%, transparent 60%);
    background-repeat: no-repeat;
    color: var(--sk-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    cursor: url('assets/cursor.cur'), auto;
    /* Clip any horizontal overflow at the body — protects against absolutely-
       positioned children (e.g. hotspot note bubbles near the phone edge)
       pushing the page wider than the viewport on mobile. `clip` preserves
       sticky positioning where `hidden` would break it. */
    overflow-x: clip;
}

a,
button,
[role="button"],
.nav-link,
.mobile-menu-link,
.social-link,
.hamburger {
    cursor: url('assets/pointer.cur'), pointer;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px 60px;
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    bottom: -20px;
    z-index: -1;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 85%, transparent 100%);
    transition: opacity 0.4s ease;
}

.nav-logo {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-logo img {
    height: 48px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

@keyframes sk-nav-enter {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-entering .nav-link {
    opacity: 0;
    animation: sk-nav-enter cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nav-entering .nav-link:nth-child(1) {
    animation-delay: 0.15s;
    animation-duration: 0.5s;
}

.nav-entering .nav-link:nth-child(2) {
    animation-delay: 0.19s;
    animation-duration: 0.47s;
}

.nav-entering .nav-link:nth-child(3) {
    animation-delay: 0.23s;
    animation-duration: 0.44s;
}

.nav-entering .nav-link:nth-child(4) {
    animation-delay: 0.27s;
    animation-duration: 0.41s;
}

.nav-entering .nav-link:nth-child(5) {
    animation-delay: 0.31s;
    animation-duration: 0.38s;
}

.nav-entering .nav-link:nth-child(6) {
    animation-delay: 0.35s;
    animation-duration: 0.35s;
}

.nav-exiting .nav-link {
    opacity: 0 !important;
    transform: translateY(-20px) !important;
}

.nav-exiting .nav-link:nth-child(6) {
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transition-delay: 0s !important;
}

.nav-exiting .nav-link:nth-child(5) {
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transition-delay: 0.01s !important;
}

.nav-exiting .nav-link:nth-child(4) {
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transition-delay: 0.02s !important;
}

.nav-exiting .nav-link:nth-child(3) {
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transition-delay: 0.03s !important;
}

.nav-exiting .nav-link:nth-child(2) {
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transition-delay: 0.04s !important;
}

.nav-exiting .nav-link:nth-child(1) {
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transition-delay: 0.05s !important;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.02em;
    font-weight: 600;
    font-size: var(--text-16);
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hamburger {
    display: none;
}

.mobile-menu {
    display: none;
}

/* ============================================
   Back to top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 36px;
    right: 36px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--sk-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    z-index: 99;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

[id] {
    scroll-margin-top: 100px;
}

/* ============================================
   Case study layout
   ============================================ */
.case-study {
    max-width: 1180px;
    margin: 0 auto;
    /* Side gutters match nocta's .nx-wrap (48 / 36 / 22 across breakpoints)
       so both case studies share the same content width + alignment. */
    padding: 120px 48px 100px;
    display: flex;
    flex-direction: column;
    /* Generous between-section gap (no dividers) — matches nocta's rhythm
       (nocta uses 120px padding top + bottom on each section). */
    gap: 240px;
}

/* Eyebrows / labels — nocta-style: Space Mono, uppercase, tracked, solid orange.
   In the single-column flow the old margin-labels read as section eyebrows. */
.cs-label,
.cs-sidebar-label,
.sk-block-label {
    font-family: 'Space Mono', monospace;
    font-weight: 500;
    font-size: var(--text-12);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sk-orange);
    margin: 0;
}

.cs-sidebar-label {
    width: auto;
}

/* Unused legacy subtitle — kept for safety with its original gradient fill. */
.cs-subtitle {
    background: linear-gradient(to bottom, var(--sk-orange) 10%, var(--sk-orange-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: var(--text-20);
}

.cs-divider {
    border: none;
    border-top: 1px solid var(--sk-border);
    margin: 0;
}

/* ============================================
   Header / hero
   ============================================ */
.cs-header {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

/* Nocta-style hero: copy on the left, a device composition on the right. */
.cs-hero-inner {
    position: relative;
    display: grid;
    /* Copy column hugs its content (~480px); the media fills the rest. */
    grid-template-columns: minmax(0, 30rem) 1fr;
    align-items: center;
    gap: 48px;
    /* Fill most of the first screen so the content sits centered with generous
       whitespace — like nocta's full-viewport hero — and "At a glance" only
       appears once you scroll past it. */
    min-height: calc(100vh - 140px);
    /* Break out of the 1180px case-study column so the hero media runs wider
       than the page. Lives here (not on .cs-header) so the sibling .sk-meta
       stays aligned to the page's content padding. Capped to the available
       gutter so it never triggers horizontal scroll. */
    margin-left: calc(-1 * min(170px, 50vw - 50% - 16px));
    margin-right: calc(-1 * min(170px, 50vw - 50% - 16px));
}

/* (Old hero-only glow removed — replaced by the page-wide body wash above.) */

.cs-header-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cs-title {
    font-family: var(--sk-serif);
    font-size: clamp(1.875rem, 3.4vw, 3rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.14;
    letter-spacing: -0.015em;
}

.cs-title em {
    font-style: italic;
    color: var(--sk-orange);
}

.cs-hero-sub {
    font-size: var(--text-18);
    line-height: 1.7;
    color: var(--sk-muted);
    max-width: 46ch;
}

/* Device composition — desktop capture with a phone overlapping in front. */
.cs-hero-media {
    position: relative;
    z-index: 2;
    align-self: center;
}

.cs-hero-desktop {
    width: 100%;
    aspect-ratio: 3056 / 2080;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--sk-border);
    background: #05101f;
    box-shadow: 0 40px 80px -28px rgba(0, 0, 0, 0.85);
}

.cs-hero-phone {
    position: absolute;
    left: -34px;
    bottom: -44px;
    z-index: 3;
    width: 172px;
    aspect-ratio: 9 / 19.5;
    border-radius: 22px;
    overflow: hidden;
    border: 6px solid #000;
    background: #05101f;
    box-shadow: 0 30px 60px -16px rgba(0, 0, 0, 0.7);
    transform: rotate(-5deg);
}

.cs-hero-desktop video,
.cs-hero-phone video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pillars — quick-jump */
.sk-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sk-pillar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--sk-border);
    background: var(--sk-surface);
    text-decoration: none;
    color: #fff;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background 0.25s ease;
}

.sk-pillar:hover {
    transform: translateY(-3px);
    border-color: var(--sk-orange);
    background: var(--sk-surface-2);
}

.sk-pillar-num {
    font-family: 'Space Mono', monospace;
    font-size: var(--text-13);
    color: var(--sk-orange);
}

.sk-pillar-name {
    font-size: var(--text-20);
    font-weight: 600;
}

.sk-pillar-meta {
    font-size: var(--text-13);
    color: var(--sk-muted);
}

/* At a glance — meta */
.sk-meta {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1px;
    background: var(--sk-border);
    border: 1px solid var(--sk-border);
    border-radius: 8px;
    overflow: hidden;
}

.sk-meta-item {
    background: var(--sk-bg);
    padding: 20px 24px;
}

.sk-meta-wide {
    grid-column: 1;
}

.sk-meta-label {
    font-size: var(--text-12);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sk-faint);
    margin-bottom: 6px;
}

.sk-meta-value {
    font-size: var(--text-16);
}

/* Placeholder slots (author to confirm) — visually distinct */
.sk-slot {
    display: inline-block;
    font-size: var(--text-13);
    color: var(--sk-orange-2);
    background: var(--sk-orange-soft);
    border: 1px dashed var(--sk-orange);
    border-radius: 6px;
    padding: 2px 8px;
    margin: 2px 4px 2px 0;
}

.sk-slot--block {
    display: block;
    padding: 10px 14px;
}

/* ============================================
   Two-column rows
   ============================================ */
/* Single-column reading flow (nocta-style): eyebrow stacked above the body. */
.cs-two-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
}

.cs-content {
    min-width: 0;
    font-size: var(--text-18);
    line-height: 1.7;
    max-width: 64ch;
}

.cs-content p {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.88);
}

.cs-content p:last-child {
    margin-bottom: 0;
}

.cs-section {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* Per-section head — nocta .nx-head anatomy: eyebrow, big light serif heading, lead. */
.sk-section-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 760px;
}

.sk-section-title {
    font-family: var(--sk-serif);
    font-size: clamp(1.875rem, 4.4vw, 3.125rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
}

.sk-section-title em {
    font-style: italic;
    color: var(--sk-orange);
}

.sk-section-kicker {
    font-size: var(--text-18);
    line-height: 1.6;
    color: var(--sk-muted);
    letter-spacing: 0;
    max-width: 60ch;
}

/* ============================================
   Overview threads
   ============================================ */
.sk-threads {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sk-thread {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--sk-border);
    background: var(--sk-surface);
    text-decoration: none;
    color: #fff;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.sk-thread-num {
    font-family: 'Space Mono', monospace;
    font-size: var(--text-14);
    color: var(--sk-orange);
}

.sk-thread-title {
    font-size: var(--text-20);
    font-weight: 600;
}

.sk-thread-desc {
    font-size: var(--text-15);
    color: var(--sk-muted);
}

/* ============================================
   Flow (end to end)
   ============================================ */
.sk-flow {
    list-style: none;
    counter-reset: flow;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--sk-border);
    border-radius: 12px;
    overflow: hidden;
}

.sk-flow-step {
    counter-increment: flow;
    display: grid;
    grid-template-columns: 56px 220px 1fr;
    gap: 20px;
    align-items: baseline;
    padding: 20px 24px;
    background: var(--sk-surface);
    border-top: 1px solid var(--sk-border);
}

.sk-flow-step:first-child {
    border-top: none;
}

.sk-flow-step::before {
    content: counter(flow, decimal-leading-zero);
    font-family: 'Space Mono', monospace;
    font-size: var(--text-14);
    color: var(--sk-orange);
}

.sk-flow-name {
    font-weight: 600;
    font-size: var(--text-16);
}

.sk-flow-desc {
    color: var(--sk-muted);
    font-size: var(--text-15);
}

/* Journey flows — alternating text + phone-video feature rows */
.sk-flows {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.sk-flow-feature {
    display: flex;
    gap: 48px;
    align-items: center;
}

.sk-flow-feature--reverse {
    flex-direction: row-reverse;
}

.sk-flow-feature-text {
    flex: 1;
    min-width: 0;
    max-width: 52ch;
}

.sk-flow-feature-num {
    font-family: 'Space Mono', monospace;
    font-size: var(--text-12);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sk-orange);
    margin-bottom: 10px;
}

.sk-flow-feature-title {
    font-family: var(--sk-serif);
    font-size: clamp(1.4rem, 2.8vw, 1.95rem);
    font-weight: 400;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 12px;
}

.sk-flow-feature-desc {
    font-size: var(--text-17, 1.0625rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

.sk-flow-feature-screens {
    font-size: var(--text-13);
    color: var(--sk-muted);
    line-height: 1.9;
}

.sk-flow-feature-screens code {
    font-family: 'Space Mono', monospace;
    font-size: 0.92em;
    color: var(--sk-orange-2);
    background: var(--sk-orange-soft);
    padding: 1px 5px;
    border-radius: 4px;
    white-space: nowrap;
}

.sk-flow-feature .sk-video--mobile {
    width: 300px;
    flex-shrink: 0;
}

/* ============================================
   Click-to-swap flow selector — buttons left, one swapping phone right
   ============================================ */
.sk-feature-switch {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 44px;
    align-items: center;
}

.sk-feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sk-feature-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    padding: 20px 22px;
    border-radius: 12px;
    border: 1px solid var(--sk-border);
    background: var(--sk-surface);
    color: #fff;
    cursor: url('assets/pointer.cur'), pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.sk-feature-btn:hover {
    border-color: rgba(232, 85, 46, 0.5);
    background: var(--sk-surface-2);
}

.sk-feature-btn.is-active {
    border-color: var(--sk-orange);
    background: var(--sk-orange-soft);
}

.sk-feature-btn:focus-visible {
    outline: 2px solid var(--sk-orange-2);
    outline-offset: 2px;
}

.sk-feature-btn-num {
    font-family: 'Space Mono', monospace;
    font-size: var(--text-12);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sk-orange);
}

.sk-feature-btn-title {
    font-size: var(--text-18);
    font-weight: 600;
}

.sk-feature-btn-desc {
    font-size: var(--text-14);
    color: var(--sk-muted);
    line-height: 1.5;
}

.sk-feature-btn.is-active .sk-feature-btn-desc {
    color: rgba(255, 255, 255, 0.80);
}

.sk-feature-panel {
    display: none;
}

.sk-feature-panel.is-active {
    display: block;
    animation: sk-stagger-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sk-feature-stage .sk-video--mobile {
    width: 100%;
}

/* Horizontal "nav tab" variant — tabs across the top, full-width desktop video
   below. Frame matches the source 3056×2080 ratio so nothing is cropped. */
.sk-feature-switch--wide {
    display: block;
}

.sk-feature-switch--wide .sk-feature-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.sk-feature-switch--wide .sk-feature-btn {
    flex: 1 1 160px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 16px;
}

.sk-feature-switch--wide .sk-feature-btn-title {
    font-size: var(--text-16);
}

/* Active feature's description — sits between the tabs and the video. */
.sk-feature-switch--wide .sk-feature-desc {
    font-size: var(--text-16);
    line-height: 1.6;
    color: var(--sk-muted);
    /* max-width: 78ch; */
    margin-bottom: 18px;
}

.sk-feature-switch--wide .sk-video--desktop .sk-video-frame {
    aspect-ratio: 3056 / 2080;
}

/* ---- Versions variant: title + description + V tabs on one side, phone with on-screen
   hotspot annotations on the other. Two columns, alternating sides; phone stays in place
   and sticky-note bubbles appear on hover/focus of each dot. ---- */
.sk-feature-switch--versions {
    grid-template-columns: 400px 320px;
    justify-content: center;
    gap: 72px;
    align-items: center;
    /* Allow hotspot bubbles to overflow the row without being clipped. */
    overflow: visible;
}

/* Flip layout — info on the right, phone on the left. */
.sk-feature-switch--versions.sk-feature-switch--reverse {
    grid-template-columns: 320px 400px;
}
.sk-feature-switch--versions.sk-feature-switch--reverse .sk-feature-info {
    grid-column: 2;
    grid-row: 1;
}
.sk-feature-switch--versions.sk-feature-switch--reverse .sk-feature-stage {
    grid-column: 1;
    grid-row: 1;
}

.sk-feature-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 100%;
}

/* ============================================
   Hotspot annotations — pulsing dots overlaid on each phone screenshot.
   Hover or focus reveals a yellow sticky-note bubble pointing to the spot.
   ============================================ */

/* Allow notes to escape the phone frame without being clipped. */
.sk-feature-switch--versions .sk-video--mobile {
    position: relative;
    overflow: visible;
}
.sk-feature-switch--versions .sk-feature-stage,
.sk-feature-switch--versions .sk-feature-panel {
    overflow: visible;
}

.sk-hotspots {
    position: absolute;
    inset: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    pointer-events: none;
    z-index: 4;
}

/* Each hotspot positioned by inline top:N% and (optionally) left:N%. Default left is 50%
   (phone centerline). Translate -50% on both axes so the dot's center sits on the coord. */
.sk-hot {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    z-index: 5;
}

/* The dot — pulsing brand-orange ring. */
.sk-hot-dot {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: var(--sk-orange);
    border: 2px solid #fff;
    box-shadow: 0 0 0 0 rgba(232, 85, 46, 0.55);
    cursor: url('assets/pointer.cur'), pointer;
    transition: transform 0.18s ease;
    animation: sk-hot-pulse 1.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    padding: 0;
}
.sk-hot-dot:hover,
.sk-hot-dot:focus-visible {
    transform: scale(1.18);
    outline: none;
}
.sk-hot:hover .sk-hot-dot,
.sk-hot:focus-within .sk-hot-dot {
    animation-play-state: paused;
    background: var(--sk-orange-2, #ff8a5c);
}

@keyframes sk-hot-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(232, 85, 46, 0.55); }
    70%  { box-shadow: 0 0 0 14px rgba(232, 85, 46, 0);    }
    100% { box-shadow: 0 0 0 0   rgba(232, 85, 46, 0);    }
}

/* The sticky-note bubble — hidden until the dot is hovered/focused. Sticks to the
   side of the phone opposite the info column (default = right side, reverse = left). */
.sk-hot-note {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(28px, -50%) scale(0.96);
    width: 240px;
    background: #FCE96A;
    color: #1a1a1a;
    padding: 12px 14px;
    border-radius: 4px;
    font-family: var(--sk-serif);
    font-size: var(--text-13);
    font-weight: 500;
    line-height: 1.45;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 6;
    /* Slight tape-corner accent */
}
.sk-hot-note::before {
    /* connector line from the dot to the note */
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    width: 24px;
    height: 1px;
    background: rgba(252, 233, 106, 0.4);
    transform: translateY(-0.5px);
}

/* Reverse rows — note opens to the LEFT of the dot. */
.sk-feature-switch--versions.sk-feature-switch--reverse .sk-hot-note {
    left: auto;
    right: 100%;
    transform: translate(-28px, -50%) scale(0.96);
}
.sk-feature-switch--versions.sk-feature-switch--reverse .sk-hot-note::before {
    right: auto;
    left: 100%;
}

/* Reveal on hover / focus / keyboard focus. */
.sk-hot:hover .sk-hot-note,
.sk-hot:focus-within .sk-hot-note {
    opacity: 1;
    transform: translate(36px, -50%) scale(1);
}
.sk-feature-switch--versions.sk-feature-switch--reverse .sk-hot:hover .sk-hot-note,
.sk-feature-switch--versions.sk-feature-switch--reverse .sk-hot:focus-within .sk-hot-note {
    transform: translate(-36px, -50%) scale(1);
}

.sk-hot-note em {
    font-style: italic;
    color: #000;
}

.sk-feature-screen-title {
    font-family: var(--sk-serif);
    font-size: var(--text-40);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0;
}

.sk-feature-screen-desc {
    font-size: var(--text-18);
    line-height: 1.55;
    color: var(--sk-muted);
    margin: 0;
    max-width: 46ch;
}

.sk-version-tabs {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 6px;
}

/* Pill V1 / V2 / V3 — overrides the card-style .sk-feature-btn default. */
.sk-version-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 10px 18px;
    border-radius: 8px;
    font-family: 'Space Mono', monospace;
    font-size: var(--text-14);
    letter-spacing: 0.12em;
    font-weight: 500;
    color: var(--sk-muted);
    background: var(--sk-surface);
    border: 1px solid var(--sk-border);
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.sk-version-btn:hover {
    color: #fff;
    border-color: rgba(232, 85, 46, 0.5);
    background: var(--sk-surface-2);
}

.sk-version-btn.is-active {
    color: #fff;
    background: var(--sk-orange);
    border-color: var(--sk-orange);
}

/* The phone in the versions variant — sized to match the Learner Redesign phone. */
.sk-feature-switch--versions .sk-feature-stage .sk-video--mobile {
    width: 100%;
    max-width: 320px;
}

.sk-feature-screens {
    margin-top: 14px;
    font-size: var(--text-12);
    color: var(--sk-muted);
    line-height: 1.85;
    text-align: center;
}

.sk-feature-screens code {
    font-family: 'Space Mono', monospace;
    font-size: 0.92em;
    color: var(--sk-orange-2);
    background: var(--sk-orange-soft);
    padding: 1px 5px;
    border-radius: 4px;
    white-space: nowrap;
}

/* ============================================
   Video embeds
   ============================================ */
.sk-video-row {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.sk-video-row--stack {
    flex-direction: column;
    align-items: stretch;
}

.sk-video {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sk-video--mobile {
    width: 300px;
    max-width: 100%;
}

.sk-video--desktop {
    flex: 1;
    min-width: 280px;
}

.sk-video--wide {
    width: 100%;
}

.sk-video-frame {
    position: relative;
    overflow: hidden;
    background: #05101f;
    border: 1px solid var(--sk-border);
}

.sk-video--mobile .sk-video-frame {
    aspect-ratio: 9 / 19.5;
    border-radius: 32px;
    border: 8px solid #000;
}

.sk-video--desktop .sk-video-frame {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
}

.sk-video-el,
.sk-embed-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #05101f;
}

/* Placeholder shown until a real source/poster loads */
.sk-video-ph {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 24px;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(232, 85, 46, 0.10), transparent 60%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 12px, transparent 12px 24px),
        #05101f;
}

.sk-video.is-ready .sk-video-ph {
    display: none;
}

.sk-video-ph-tag {
    font-family: 'Space Mono', monospace;
    font-size: var(--text-12);
    letter-spacing: 0.08em;
    color: var(--sk-orange);
    border: 1px solid var(--sk-orange);
    border-radius: 8px;
    padding: 4px 12px;
}

.sk-video-ph-name {
    font-size: var(--text-16);
    font-weight: 600;
    color: #fff;
}

.sk-video-ph-path {
    font-family: 'Space Mono', monospace;
    font-size: var(--text-11);
    color: var(--sk-faint);
    word-break: break-all;
    max-width: 240px;
}

.sk-video-cap {
    font-size: var(--text-14);
    color: var(--sk-muted);
    line-height: 1.45;
    max-width: 60ch;
}

/* Replay button (badge animation) */
.sk-replay {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sk-serif);
    font-size: var(--text-13);
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid var(--sk-border);
    border-radius: 8px;
    padding: 6px 12px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.sk-replay:hover {
    background: rgba(232, 85, 46, 0.85);
    border-color: var(--sk-orange);
}

.sk-video--badge {
    align-self: center;
}

/* ============================================
   Problems (4 numbered)
   ============================================ */
.sk-problems {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sk-problem {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 10px;
    background: var(--sk-surface);
    border: 1px solid var(--sk-border);
}

.sk-problem-num {
    font-family: 'Space Mono', monospace;
    font-size: var(--text-20);
    color: var(--sk-orange);
    flex-shrink: 0;
}

.sk-problem p {
    font-size: var(--text-16);
}

/* ============================================
   Before / after
   ============================================ */
.sk-beforeafter {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.sk-ba-card {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--sk-border);
    background: var(--sk-surface);
}

.sk-ba-before {
    opacity: 0.78;
}

.sk-ba-after {
    border-color: var(--sk-orange);
    background: var(--sk-orange-soft);
}

.sk-ba-tag {
    font-size: var(--text-12);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sk-muted);
    margin-bottom: 4px;
}

.sk-ba-after .sk-ba-tag {
    color: var(--sk-orange-2);
}

.sk-ba-title {
    font-size: var(--text-22);
    font-weight: 600;
    margin-bottom: 12px;
}

.sk-ba-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sk-ba-card li {
    font-size: var(--text-15);
    color: rgba(255, 255, 255, 0.85);
    padding-left: 18px;
    position: relative;
}

.sk-ba-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sk-faint);
}

.sk-ba-after li::before {
    background: var(--sk-orange);
}

.sk-ba-arrow {
    font-size: var(--text-32);
    color: var(--sk-orange);
}

/* ============================================
   Steps (3-step solution)
   ============================================ */
.sk-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sk-step {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--sk-border);
    background: var(--sk-surface);
}

.sk-step-num {
    font-family: 'Space Mono', monospace;
    font-size: var(--text-13);
    color: var(--sk-orange);
    letter-spacing: 0.04em;
}

.sk-step-title {
    font-size: var(--text-20);
    font-weight: 600;
}

.sk-step-desc {
    font-size: var(--text-15);
    color: var(--sk-muted);
}

/* ============================================
   Phase strip (motion)
   ============================================ */
.sk-phases {
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sk-phase {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-14);
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--sk-border);
    background: var(--sk-surface);
}

.sk-phase-num {
    font-family: 'Space Mono', monospace;
    font-size: var(--text-12);
    color: var(--sk-orange);
}

/* ============================================
   Decision / list blocks
   ============================================ */
.sk-decisions,
.sk-demonstrates {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 80ch;
}

.sk-decisions li,
.sk-demonstrates li {
    position: relative;
    padding-left: 24px;
    font-size: var(--text-17, 1.0625rem);
    line-height: 1.5;
}

.sk-decisions li::before,
.sk-demonstrates li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--sk-orange);
}

.sk-decisions strong {
    font-weight: 700;
    color: #fff;
}

/* Repo-grounding note */
.sk-grounding {
    font-size: var(--text-14);
    color: var(--sk-muted);
    border-left: 2px solid var(--sk-orange);
    padding-left: 16px;
}

.sk-grounding code {
    font-family: 'Space Mono', monospace;
    font-size: 0.9em;
    color: var(--sk-orange-2);
    background: var(--sk-orange-soft);
    padding: 1px 5px;
    border-radius: 4px;
}

/* ============================================
   Results / metrics slot — distinct, easy to find
   ============================================ */
.sk-metrics {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 28px 24px;
    border: 2px dashed var(--sk-orange);
    border-radius: 12px;
    background: var(--sk-orange-soft);
}

.sk-metrics-label {
    font-size: var(--text-16);
    font-weight: 700;
    color: var(--sk-orange-2);
    letter-spacing: 0.02em;
}

.sk-metrics-hint {
    font-size: var(--text-13);
    color: var(--sk-muted);
}

/* Embed (spec sample) */
.sk-embed .sk-video-frame {
    aspect-ratio: 16 / 9;
}

/* Signature */
.sk-signature {
    border-top: 1px solid var(--sk-border);
    padding-top: 28px;
    text-align: center;
    font-size: var(--text-16);
    color: var(--sk-muted);
}

.sk-signature strong {
    color: #fff;
}

.sk-signature a {
    color: var(--sk-orange-2);
    text-decoration: none;
}

.sk-signature a:hover {
    text-decoration: underline;
}

/* ============================================
   Design-process arc — framed shots, scroll strips,
   brand swatches, type specimen, testing stats
   ============================================ */

/* Framed static board / screenshot (competitor boards, brand board, etc.) */
.sk-shot {
    overflow: hidden;
    background: #05101f;
    display: block;

}

.sk-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.sk-caption {
    margin-top: 12px;
    font-size: var(--text-14);
    color: var(--sk-muted);
    line-height: 1.5;
    max-width: 72ch;
}

/* Brand-direction options — the alternates are muted, the chosen one is
   highlighted so the pick reads at a glance. */
.sk-brand-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
}

.sk-brand-option {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.sk-brand-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--sk-border);
    background: #05101f;
    transition: opacity 0.25s ease;
}

.sk-brand-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.sk-brand-option--muted .sk-brand-frame {
    opacity: 0.5;
}

.sk-brand-option--muted:hover .sk-brand-frame {
    opacity: 0.85;
}

.sk-brand-option--picked .sk-brand-frame {
    border: 2px solid var(--sk-orange);
    box-shadow: 0 0 0 4px rgba(232, 85, 46, 0.15),
                0 24px 60px -28px rgba(0, 0, 0, 0.7);
}

.sk-brand-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--sk-orange);
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: var(--text-12);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.sk-brand-cap {
    font-family: 'Space Mono', monospace;
    font-size: var(--text-12);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sk-faint);
}

.sk-brand-option--picked .sk-brand-cap {
    color: var(--sk-orange-2);
}

@media (max-width: 640px) {
    .sk-brand-options {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* Horizontal scroll strip for wide rows of screens */
/* Fit-to-width row (default): every photo shares the width with a 12px gap,
   so all of them are visible at once — no horizontal scroll. */
.sk-strip {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.sk-strip img {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid var(--sk-border);
}

.sk-strip-hint {
    font-family: 'Space Mono', monospace;
    font-size: var(--text-12);
    letter-spacing: 0.08em;
    color: var(--sk-faint);
    margin-top: 8px;
}

/* ============================================
   Before & After — single wipe line across a fit-to-width strip of six
   phones. The "after" row sits at the bottom; the "before" row layers on
   top and is clipped to the left of the handle. The wipe is instant
   (clip-path is a hard cut, no blend).
   ============================================ */
.sk-compare {
    position: relative;
    width: 100%;
    margin: 0;
    /* The handle / clip both read from this; JS updates it on drag. */
    --pos: 50%;
}

.sk-compare-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
}

.sk-compare-row img {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid var(--sk-border);
}

/* Before row sits on top. The handle starts at the LEFT (--pos: 0) so the
   full Before strip is visible. As --pos increases, Before is clipped from
   the LEFT, revealing the After row underneath like a curtain pulled right. */
.sk-compare-row--before {
    position: absolute;
    inset: 0;
    clip-path: inset(0 0 0 var(--pos));
    -webkit-clip-path: inset(0 0 0 var(--pos));
    pointer-events: none;
    z-index: 2;
}

/* "Before" / "After" corner tags — visual orientation while dragging. */
.sk-compare-label {
    position: absolute;
    top: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: var(--text-12);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    z-index: 5;
    pointer-events: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.sk-compare-label--before { left: 12px; }
.sk-compare-label--after  { right: 12px; }

/* Handle = line + knob, positioned by the --pos var. Pointer-events off
   because the invisible range input below owns the drag. */
.sk-compare-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 10;
}

.sk-compare-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--sk-orange);
    box-shadow: 0 0 14px rgba(232, 85, 46, 0.65);
}

.sk-compare-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sk-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(232, 85, 46, 0.55),
                0 0 0 4px rgba(232, 85, 46, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sk-compare-input:hover ~ .sk-compare-handle .sk-compare-knob,
.sk-compare-input:focus-visible ~ .sk-compare-handle .sk-compare-knob {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 8px 22px rgba(232, 85, 46, 0.7),
                0 0 0 6px rgba(232, 85, 46, 0.22);
}

/* Native range input layered on top — invisible but handles drag, keyboard,
   focus. The ::-webkit-slider-thumb is wide so the entire strip is grabbable. */
.sk-compare-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 11;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
}
.sk-compare-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 44px;
    height: 100%;
    cursor: ew-resize;
}
.sk-compare-input::-moz-range-thumb {
    width: 44px;
    height: 100%;
    border: none;
    background: transparent;
    cursor: ew-resize;
}

@media (max-width: 640px) {
    /* Phones get tiny at 6-across on a narrow screen, but the wipe still
       reads. Tighten gaps so they don't overwhelm the image area. */
    .sk-compare-row {
        gap: 6px;
    }
    .sk-compare-knob { width: 36px; height: 36px; }
    .sk-compare-label {
        top: 6px;
        font-size: 10px;
        padding: 3px 6px;
    }
    .sk-compare-label--before { left: 6px; }
    .sk-compare-label--after  { right: 6px; }
}

/* Three-up (or two-up) version comparison — show a single screen across
   V1 / V2 / V3 so the evolution reads at a glance. */
.sk-evolve {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sk-evolve-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
}

.sk-evolve-row--2up {
    grid-template-columns: repeat(2, 1fr);
}

.sk-evolve-step {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.sk-evolve-step img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--sk-border);
}

.sk-evolve-tag {
    font-family: 'Space Mono', monospace;
    font-size: var(--text-12);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sk-faint);
}

@media (max-width: 640px) {
    .sk-evolve-row { gap: 10px; }
}

/* ============================================
   Iteration scrubber — drag V1 → V2 → V3 and all 5 phones cross-fade
   together. The native range input is laid over a custom track + thumb.
   ============================================ */
.sk-scrubber {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sk-scrubber-control {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.sk-scrubber-stops {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
}

.sk-scrub-stop {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: transparent;
    border: none;
    color: var(--sk-faint);
    cursor: url('assets/pointer.cur'), pointer;
    transition: color 0.2s ease;
    font-family: inherit;
}

.sk-scrub-stop:hover { color: var(--sk-muted); }

.sk-scrub-stop.is-active { color: var(--sk-orange); }

.sk-scrub-stop-num {
    font-family: 'Space Mono', monospace;
    font-size: var(--text-14);
    font-weight: 700;
    letter-spacing: 0.06em;
}

.sk-scrub-stop-label {
    font-family: 'Space Mono', monospace;
    font-size: var(--text-11);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sk-scrubber-track {
    position: relative;
    height: 28px;
    touch-action: none;
}

.sk-scrubber-rail {
    position: absolute;
    top: 50%;
    left: 8px;
    right: 8px;
    height: 3px;
    transform: translateY(-50%);
    background: var(--sk-border);
    border-radius: 8px;
}

.sk-scrubber-fill {
    position: absolute;
    top: 50%;
    left: 8px;
    height: 3px;
    transform: translateY(-50%);
    background: var(--sk-orange);
    border-radius: 8px;
    pointer-events: none;
}

.sk-scrubber-tick {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sk-bg);
    border: 2px solid var(--sk-border);
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: border-color 0.2s ease;
}

.sk-scrubber-tick.is-passed { border-color: var(--sk-orange); }

.sk-scrubber-thumb {
    position: absolute;
    top: 50%;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sk-orange);
    border: 3px solid var(--sk-bg);
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 14px rgba(232, 85, 46, 0.45),
                0 0 0 1px var(--sk-orange);
    pointer-events: none;
    z-index: 2;
}

/* Native range input layered on top — invisible, but it carries focus +
   keyboard + drag. */
.sk-scrubber-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    opacity: 0;
    cursor: url('assets/pointer.cur'), grab;
    z-index: 3;
}

.sk-scrubber-input:active { cursor: grabbing; }

.sk-scrubber-input:focus-visible + .sk-scrubber-thumb,
.sk-scrubber-input:focus-visible {
    outline: 2px solid var(--sk-orange-2);
    outline-offset: 4px;
    border-radius: 8px;
}

/* 5-up row of phones; each phone has 3 stacked images (V1/V2/V3) whose
   opacity is driven by the scrubber. */
.sk-scrubber-phones {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    align-items: start;
}

.sk-scrub-cell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.sk-scrub-name {
    font-family: 'Space Mono', monospace;
    font-size: var(--text-12);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sk-faint);
    text-align: center;
}

.sk-scrub-phone {
    position: relative;
    aspect-ratio: 9 / 19.5;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--sk-border);
    background: #05101f;
}

.sk-scrub-phone img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

@media (max-width: 820px) {
    .sk-scrubber-phones { grid-template-columns: repeat(5, 1fr); gap: 8px; }
    .sk-scrub-name { font-size: var(--text-11); }
}

@media (max-width: 640px) {
    .sk-scrubber { gap: 24px; }
    .sk-scrubber-phones { gap: 6px; }
    .sk-scrub-name { font-size: var(--text-10); letter-spacing: 0.04em; }
    .sk-scrub-stop-label { display: none; }
}

/* A labelled iteration step (V1 / V2 / V3 rows) */
.sk-evo {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sk-evo-label {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.sk-evo-tag {
    font-family: 'Space Mono', monospace;
    font-size: var(--text-12);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sk-orange);
}

.sk-evo-note {
    font-size: var(--text-15);
    color: var(--sk-muted);
}

/* Brand colour swatches */
/* Equal-width grid stretching to 100% of the section. Each chip is a square
   that scales with the column width (aspect-ratio: 1). */
.sk-swatches {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    width: 100%;
}

.sk-swatch {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.sk-swatch-chip {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    border: 1px solid var(--sk-border);
}

.sk-swatch-name {
    font-size: var(--text-13);
    font-weight: 600;
}

.sk-swatch-hex {
    font-family: 'Space Mono', monospace;
    font-size: var(--text-12);
    color: var(--sk-muted);
}

/* Type specimen */
.sk-typescale {
    display: flex;
    flex-direction: row;
    gap: 0;
}

.sk-type-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 0;
    /* border-bottom: 1px solid var(--sk-border); */
}

.sk-type-row:last-child {
    border-bottom: none;
}

.sk-type-meta {
    font-family: 'Space Mono', monospace;
    font-size: var(--text-12);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sk-faint);
}

.sk-type-display {
    font-family: var(--sk-serif);
    font-size: var(--text-32);
    font-weight: 400;
    line-height: 1.1;
}

.sk-type-body {
    font-family: 'IBM Plex Mono', monospace;
    font-size: var(--text-18);
}

.sk-type-mono {
    font-family: 'Space Mono', monospace;
    font-size: var(--text-16);
    letter-spacing: 0.04em;
}

/* Testing stat row */
.sk-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.sk-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px;
    border-radius: 12px;
    border: 1px solid var(--sk-border);
    background: var(--sk-surface);
}

.sk-stat-num {
    font-family: var(--sk-serif);
    font-size: var(--text-40);
    font-weight: 400;
    color: var(--sk-orange-2);
    line-height: 1;
}

.sk-stat-label {
    font-size: var(--text-14);
    color: var(--sk-muted);
    line-height: 1.4;
}

@media (max-width: 820px) {
    .sk-stats {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 640px) {
    /* Re-flow into 3 columns so chips don't get too tiny on narrow widths. */
    .sk-swatches {
        grid-template-columns: repeat(3, 1fr);
    }

    .sk-stat {
        padding: 18px;
    }
}

/* ============================================
   Testing — per-flow result cards + heatmap evidence grid
   ============================================ */
.sk-flow-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sk-flow-result {
    /* button reset — these are clickable tabs */
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    text-align: left;
    color: inherit;
    cursor: url('assets/pointer.cur'), pointer;

    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    border-radius: 12px;
    border: 1px solid var(--sk-border);
    background: var(--sk-surface);
    /* Inactive tabs sit visibly back so the active one reads as the focus. */
    opacity: 0.55;
    transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.sk-flow-result:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Active tab — matches the .sk-feature-btn (Learner flow) selection pattern:
   orange border + orange-soft fill. All cards look identical when inactive;
   the active one pops via the orange ring. */
.sk-flow-result.is-active {
    opacity: 1;
    transform: translateY(-2px);
    border-color: var(--sk-orange);
    background: var(--sk-orange-soft);
    box-shadow: 0 0 0 2px var(--sk-orange), 0 10px 28px rgba(0, 0, 0, 0.45);
}

.sk-flow-result:focus-visible {
    outline: 2px solid var(--sk-orange-2);
    outline-offset: 2px;
}

.sk-flow-result-tag {
    font-family: 'Space Mono', monospace;
    font-size: var(--text-12);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sk-orange);
    margin: 0;
}

.sk-flow-result-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sk-flow-bar {
    display: grid;
    grid-template-columns: 64px 1fr 56px;
    align-items: center;
    gap: 12px;
}

.sk-flow-bar-label {
    font-size: var(--text-12);
    color: var(--sk-muted);
    letter-spacing: 0.04em;
}

.sk-flow-bar-track {
    position: relative;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.sk-flow-bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 4px;
    background: #7cd9a3; /* success — soft green */
}

.sk-flow-bar-fill--miss {
    background: var(--sk-orange); /* mis-click — brand orange */
}

.sk-flow-bar-num {
    font-family: 'Space Mono', monospace;
    font-size: var(--text-14);
    color: #fff;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Heatmap evidence — grouped by flow, two phones per row. */
.sk-heat-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sk-heat-group + .sk-heat-group {
    margin-top: 36px;
}

.sk-heat-group-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Mono', monospace;
    font-size: var(--text-12);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--sk-muted);
    margin: 0;
}

.sk-heat-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--sk-orange);
    flex-shrink: 0;
}
.sk-heat-dot--win  { background: #7cd9a3; }
.sk-heat-dot--miss { background: var(--sk-orange); }

.sk-heat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
}

/* 3-up variant — for flows where the heatmap story takes three screens
   (e.g. Flow 01: splash → goal → free trial). */
.sk-heat-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.sk-heat {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
}

/* Frame each heatmap as a phone — same look as the iteration evolution shots. */
.sk-heat-frame {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9 / 19.5;
    border-radius: 32px;
    border: 8px solid #000;
    overflow: hidden;
    background: #05101f;
    margin: 0 auto;
}

.sk-heat-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sk-heat figcaption {
    font-size: var(--text-14);
    line-height: 1.55;
    color: var(--sk-muted);
    text-align: center;
    max-width: 38ch;
    margin: 0 auto;
}

/* Tab-driven panel — only the active flow's content is shown. The [hidden] attribute
   handles the no-JS / pre-script state; .is-active handles JS-driven swapping. */
.sk-flow-panels {
    margin-top: 12px;
}
.sk-flow-panel {
    display: none;
}
.sk-flow-panel.is-active {
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: sk-stagger-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Small "tap a flow…" hint trailing the section label. */
.sk-hint {
    color: var(--sk-faint);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    margin-left: 4px;
}

/* Quote wall — used when a flow has no heatmaps (Flow 01). Pulls real user feedback
   from the Maze board into a tidy chip grid. */
.sk-quote-wall {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.sk-quote-wall li {
    padding: 18px 20px;
    border-radius: 10px;
    border: 1px solid var(--sk-border);
    background: var(--sk-surface);
    font-family: var(--sk-serif);
    font-size: var(--text-18);
    line-height: 1.4;
    color: #fff;
}

@media (max-width: 820px) {
    .sk-flow-results {
        grid-template-columns: 1fr;
    }
    .sk-heat-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .sk-heat-frame {
        max-width: 260px;
    }
    .sk-quote-wall {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Page entrance & exit
   ============================================ */
.page-transition-cover {
    position: fixed;
    inset: 0;
    background: var(--sk-bg);
    z-index: 99;
    pointer-events: none;
}

.cs-exiting .case-study,
.cs-exiting .back-to-top,
.cs-exiting .nav-logo,
.cs-exiting .navbar::before {
    opacity: 0;
    transition: opacity 0.28s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.cs-exiting::after {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--sk-bg);
    z-index: 98;
    opacity: 0;
    animation: sk-darken 0.24s ease 0.02s forwards;
}

@keyframes sk-darken {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Scroll reveal — short fade, small lift. Pairs with a generous "trigger
   early" rootMargin in skillcat.js so sections are fully in by the time the
   reader's eye reaches them. */
.cs-section,
.cs-header,
.cs-divider {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-section.cs-visible,
.cs-header.cs-visible,
.cs-divider.cs-visible {
    opacity: 1;
    transform: translateY(0);
}

.cs-visible .cs-two-col,
.cs-visible .sk-pillars,
.cs-visible .sk-threads,
.cs-visible .sk-flow,
.cs-visible .sk-flows,
.cs-visible .sk-feature-switch,
.cs-visible .sk-video-row,
.cs-visible .sk-problems,
.cs-visible .sk-beforeafter,
.cs-visible .sk-steps,
.cs-visible .sk-phases,
.cs-visible .sk-metrics,
.cs-visible .sk-shot,
.cs-visible .sk-strip,
.cs-visible .sk-stats,
.cs-visible .sk-swatches,
.cs-visible .sk-typescale,
.cs-visible .sk-evo,
.cs-visible .sk-evolve,
.cs-visible .sk-scrubber,
.cs-visible .sk-flow-results,
.cs-visible .sk-heat-group,
.cs-visible .sk-meta {
    animation: sk-stagger-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.cs-visible> :nth-child(1) {
    animation-delay: 0s;
}

.cs-visible> :nth-child(2) {
    animation-delay: 0.06s;
}

.cs-visible> :nth-child(3) {
    animation-delay: 0.12s;
}

.cs-visible> :nth-child(4) {
    animation-delay: 0.18s;
}

.cs-visible> :nth-child(5) {
    animation-delay: 0.24s;
}

.cs-visible> :nth-child(6) {
    animation-delay: 0.30s;
}

@keyframes sk-stagger-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    .cs-section,
    .cs-header,
    .cs-divider {
        transition: none;
    }

    .cs-visible .cs-two-col,
    .cs-visible .sk-pillars,
    .cs-visible .sk-threads,
    .cs-visible .sk-flow,
    .cs-visible .sk-flows,
    .cs-visible .sk-feature-switch,
    .cs-visible .sk-video-row,
    .cs-visible .sk-problems,
    .cs-visible .sk-beforeafter,
    .cs-visible .sk-steps,
    .cs-visible .sk-phases,
    .cs-visible .sk-metrics,
    .cs-visible .sk-shot,
    .cs-visible .sk-strip,
    .cs-visible .sk-stats,
    .cs-visible .sk-swatches,
    .cs-visible .sk-typescale,
    .cs-visible .sk-evo,
    .cs-visible .sk-evolve,
    .cs-visible .sk-scrubber,
    .cs-visible .sk-flow-results,
    .cs-visible .sk-heat-group,
    .cs-visible .sk-meta {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1100px) {
    .case-study {
        padding: 100px 36px 80px;
        gap: 72px;
    }

    .navbar {
        padding: 16px 40px;
    }

    .nav-logo {
        left: 40px;
    }

    .nav-link {
        padding: 8px 16px;
        font-size: var(--text-13);
    }

    .sk-flow-step {
        grid-template-columns: 44px 180px 1fr;
        gap: 16px;
    }
}

@media (max-width: 820px) {
    .case-study {
        padding: 90px 36px 60px;
        gap: 56px;
    }

    /* Hero stacks: copy on top, device composition below — and drop the
       desktop breakout so the hero aligns with the rest of the page. */
    .cs-hero-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        min-height: auto;
        margin-left: 0;
        margin-right: 0;
    }

    .cs-hero-media {
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }

    .navbar {
        padding: 12px 24px;
    }

    .nav-logo {
        left: 24px;
    }

    .nav-logo img {
        height: 40px;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: var(--text-12);
    }

    /* Back-to-top: keep nocta's 46×46 / bottom:36 / right:36 across breakpoints. */

    .cs-two-col {
        gap: 12px;
    }

    .cs-content {
        font-size: var(--text-16);
    }

    .sk-pillars,
    .sk-threads,
    .sk-steps {
        grid-template-columns: 1fr;
    }

    .sk-meta {
        grid-template-columns: 1fr;
    }

    .sk-meta-wide {
        grid-column: 1;
    }

    .sk-problems {
        grid-template-columns: 1fr;
    }

    .sk-flow-step {
        grid-template-columns: 40px 1fr;
    }

    .sk-flow-step::before {
        grid-row: 1;
    }

    .sk-flow-name {
        grid-column: 2;
    }

    .sk-flow-desc {
        grid-column: 2;
    }

    .sk-beforeafter {
        grid-template-columns: 1fr;
    }

    .sk-ba-arrow {
        transform: rotate(90deg);
        justify-self: center;
    }

    .sk-video-row {
        gap: 20px;
    }

    .sk-video--mobile {
        width: 260px;
    }

    .sk-flows {
        gap: 40px;
    }

    .sk-flow-feature,
    .sk-flow-feature--reverse {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .sk-flow-feature .sk-video--mobile {
        align-self: center;
    }

    .sk-feature-switch {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .sk-feature-stage .sk-video--mobile {
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Versions variant: drop to single column. Phone keeps its hotspots; the note
       bubbles re-anchor below each dot so they don't run off-screen on narrow widths. */
    .sk-feature-switch--versions,
    .sk-feature-switch--versions.sk-feature-switch--reverse {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .sk-feature-switch--versions.sk-feature-switch--reverse .sk-feature-info,
    .sk-feature-switch--versions.sk-feature-switch--reverse .sk-feature-stage {
        grid-column: 1;
        grid-row: auto;
    }
    .sk-feature-screen-title {
        font-size: var(--text-28);
    }
    .sk-feature-screen-desc {
        font-size: var(--text-16);
    }
    .sk-feature-switch--versions .sk-feature-stage .sk-video--mobile {
        max-width: 300px;
    }
    /* Mobile: note bubbles open downward from the dot. Cap width to a fraction
       of the viewport so notes near the right edge of a phone don't push past
       the screen. body { overflow-x: clip } catches anything that still slips. */
    .sk-hot-note,
    .sk-feature-switch--versions.sk-feature-switch--reverse .sk-hot-note {
        top: calc(100% + 12px);
        left: 50%;
        right: auto;
        transform: translate(-50%, 0) scale(0.96);
        width: min(180px, calc(100vw - 48px));
    }
    .sk-hot-note::before,
    .sk-feature-switch--versions.sk-feature-switch--reverse .sk-hot-note::before {
        top: auto;
        bottom: 100%;
        left: 50%;
        right: auto;
        width: 1px;
        height: 12px;
        transform: translateX(-0.5px);
    }
    .sk-hot:hover .sk-hot-note,
    .sk-hot:focus-within .sk-hot-note,
    .sk-feature-switch--versions.sk-feature-switch--reverse .sk-hot:hover .sk-hot-note,
    .sk-feature-switch--versions.sk-feature-switch--reverse .sk-hot:focus-within .sk-hot-note {
        transform: translate(-50%, 4px) scale(1);
    }
}

@media (max-width: 640px) {

    /* Keep the overlapping phone inside the content gutter. */
    .cs-hero-phone {
        left: 6px;
        bottom: -20px;
        width: 104px;
    }

    .navbar {
        padding: 2rem;
        z-index: 110;
    }

    .nav-logo {
        left: 16px;
    }

    .nav-links {
        display: none !important;
    }

    .nav-logo img,
    .nav-logo .nav-logo-svg {
        height: 36px;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        padding: 8px;
        background: none;
        border: none;
        z-index: 110;
    }

    .hamburger-line {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .hamburger.is-open .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.is-open .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.is-open .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .mobile-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        position: fixed;
        inset: 0;
        z-index: 105;
        background: rgba(0, 12, 25, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mobile-menu.menu-open {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-link {
        font-family: 'IBM Plex Mono', monospace;
        font-weight: 600;
        font-size: var(--text-24);
        color: #fff;
        text-decoration: none;
        padding: 1rem 3rem;
        border-radius: 8px;
        opacity: 0;
        transform: translateY(20px);
    }

    @keyframes sk-mobile-nav-enter {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-menu.menu-open .mobile-menu-link {
        animation: sk-mobile-nav-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .mobile-menu.menu-open .mobile-menu-link:nth-child(1) {
        animation-delay: 0.1s;
    }

    .mobile-menu.menu-open .mobile-menu-link:nth-child(2) {
        animation-delay: 0.15s;
    }

    .mobile-menu.menu-open .mobile-menu-link:nth-child(3) {
        animation-delay: 0.2s;
    }

    .mobile-menu.menu-open .mobile-menu-link:nth-child(4) {
        animation-delay: 0.25s;
    }

    .mobile-menu.menu-open .mobile-menu-link:nth-child(5) {
        animation-delay: 0.3s;
    }

    .mobile-menu-link.active {
        color: #1180f9;
        background: rgba(17, 128, 249, 0.08);
    }

    /* Mobile menu socials — horizontal row of icon buttons below the nav links */
    .mobile-menu-socials {
        display: flex;
        gap: 16px;
        margin-top: 1.5rem;
        opacity: 0;
        transform: translateY(20px);
    }

    .mobile-menu.menu-open .mobile-menu-socials {
        animation: sk-mobile-nav-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        animation-delay: 0.3s;
    }

    .mobile-menu-social {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        border-radius: 8px;
        border: 1.5px solid rgba(255, 255, 255, 0.35);
        color: #fff;
        font-size: var(--text-24);
        text-decoration: none;
        transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    }

    .mobile-menu-social:hover {
        border-color: rgba(255, 255, 255, 0.7);
        background: rgba(255, 255, 255, 0.08);
    }

    .mobile-menu.menu-closing {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
    }

    .nav-exiting .hamburger {
        opacity: 0 !important;
        transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .case-study {
        padding: 80px 22px 40px;
        gap: 48px;
    }

    .sk-video--mobile {
        width: 100%;
        max-width: 280px;
        align-self: center;
    }
}

/* ============================================
   Section-nav accent — SkillCat orange.
   cs-nav.css loads before this file, so these win over its default blue.
   ============================================ */
.cs-nav-indicator {
    background: rgba(232, 85, 46, 0.16);
}

.cs-nav-links .nav-link:hover,
.cs-nav-links .nav-link.active {
    color: var(--sk-orange-2);
}

/* ==========================================================================
   Mobile navbar — standardized to match the index.html navbar exactly.
   Appended last so it wins over this file's earlier navbar rules (logo size
   was inconsistent and the bar height / logo position varied per page).
   ========================================================================== */
@media (max-width: 640px) {
    .navbar {
        padding: 0;
        height: 64px;
    }

    .nav-logo {
        left: 16px;
        top: 22px;
        transform: none;
    }

    .nav-logo img,
    .nav-logo .nav-logo-svg {
        height: 36px;
    }

    .hamburger {
        right: 16px;
        top: 22px;
        transform: none;
    }
}

/* ==========================================================================
   SkillCat — final mobile-only adjustments (appended last so they win).
   ========================================================================== */
@media (max-width: 640px) {
    /* Per-flow result row: keep the three flow cards side-by-side on mobile
       so the comparison still reads as a row. Strip the "Success" / "Mis-click"
       text labels — the colored bars + percentages carry the meaning. */
    .sk-flow-results {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }
    .sk-flow-results .sk-flow-result {
        flex: 1 1 0;
        min-width: 0;
        padding: 14px 12px;
        gap: 12px;
    }
    .sk-flow-result-tag {
        font-size: 10px;
        letter-spacing: 0.08em;
    }
    .sk-flow-result-bars {
        gap: 8px;
    }
    /* Bars become a 2-column grid (track | number) instead of label | track | number. */
    .sk-flow-bar {
        grid-template-columns: 1fr 44px;
        gap: 8px;
    }
    .sk-flow-bar-label {
        display: none;
    }
    .sk-flow-bar-num {
        font-size: 11px;
    }
}