/* LiveSquad by ConsultingThai · livesquad.consultingthai.com
 * Theme: TikTok-inspired. Near-black #010101 / #121212, white, cyan #25F4EE + pink #FE2C55 accents,
 * offset cyan/pink "glitch" shadow as the signature. Clean white sections for contrast.
 * Fonts: Inter (Latin) + Noto Sans Thai. Mobile-first, no build step.
 * Contrast notes: cyan / #FE2C55 are used as text only on dark backgrounds (13.6:1 / 5.1:1).
 * On white, accent text uses --pink-ink (#D90F3C, 5.1:1) or --cyan-ink (#00706c).
 */

:root {
    /* colour */
    --ink: #010101;
    --ink-2: #121212;
    --ink-3: #1c1c1f;
    --ink-4: #26262b;
    --white: #ffffff;
    --soft: #f4f4f6;
    --rule: #e3e3e8;
    --field-rule: #c9c9d1;
    --text: #121212;
    --muted: #5c5c66;
    --cyan: #25f4ee;
    --pink: #fe2c55;
    --pink-ink: #d90f3c;
    --live: #e8174a;
    --cyan-ink: #00706c;
    --error: #b42318;
    --error-wash: #fef3f2;
    --on-dark: #ffffff;
    --on-dark-muted: rgba(255, 255, 255, 0.76);
    --on-dark-faint: rgba(255, 255, 255, 0.62);
    --dark-rule: rgba(255, 255, 255, 0.12);
    --dark-card: rgba(255, 255, 255, 0.05);

    --glitch-sm: -2px -2px 0 var(--cyan), 2px 2px 0 var(--pink);
    --glitch: -4px -4px 0 var(--cyan), 4px 4px 0 var(--pink);
    --glitch-lg: -8px -8px 0 -2px var(--cyan), 8px 8px 0 -2px var(--pink);
    --shadow-soft: 0 24px 60px rgba(1, 1, 1, 0.14);
    --shadow-sticky: 0 16px 40px rgba(1, 1, 1, 0.45);

    /* type */
    --font-body: "Inter", "Noto Sans Thai", -apple-system, system-ui, sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-md: 1.125rem;
    --text-lg: 1.375rem;
    --text-xl: 1.75rem;
    --text-2xl: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
    --text-display: clamp(2.05rem, 1.15rem + 4.1vw, 4.1rem);

    /* space (4pt) */
    --space-2xs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --space-3xl: 96px;

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-pill: 999px;
    --container: 72rem;
    --gutter: 16px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-short: 200ms;
}

@media (min-width: 48rem) {
    :root {
        --gutter: 32px;
    }
}

/* ---------- base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: clip;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--ink);
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

[hidden] {
    display: none !important;
}

img,
iframe {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.22;
    overflow-wrap: anywhere;
    min-width: 0;
    text-wrap: balance;
}

h2 {
    font-size: var(--text-2xl);
}

h3 {
    font-size: var(--text-md);
    font-weight: 700;
}

a {
    color: inherit;
}

::selection {
    color: var(--ink);
    background: var(--cyan);
}

:focus-visible {
    outline: 3px solid var(--cyan-ink);
    outline-offset: 3px;
}

.dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.sticky-cta :focus-visible {
    outline-color: var(--cyan);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-md);
    z-index: 300;
    padding: var(--space-xs) var(--space-md);
    color: var(--ink);
    background: var(--cyan);
    border-radius: var(--radius-pill);
    font-weight: 700;
}

.skip-link:focus {
    top: var(--space-md);
}

.shell {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.kicker {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: var(--space-sm);
    color: var(--pink-ink);
    font-size: var(--text-sm);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.kicker::before {
    content: "";
    flex: none;
    width: 22px;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan) 0 50%, var(--pink) 50% 100%);
    border-radius: 2px;
}

.kicker--live::before {
    display: none;
}

.dark .kicker {
    color: var(--cyan);
}

.lede {
    max-width: 40rem;
    margin-top: var(--space-md);
    color: var(--muted);
    font-size: var(--text-md);
}

.dark .lede {
    color: var(--on-dark-muted);
}

.section {
    padding-block: var(--space-2xl);
}

@media (min-width: 64rem) {
    .section {
        padding-block: var(--space-3xl);
    }
}

.section-head {
    max-width: 44rem;
    margin-bottom: var(--space-xl);
}

.tone-white {
    background: var(--white);
}

.tone-soft {
    background: var(--soft);
}

.nw {
    white-space: nowrap;
}

/* ---------- glitch text ---------- */

.glitch {
    text-shadow: -2px -1px 0 var(--cyan), 2px 1px 0 var(--pink);
}

.tone-white .glitch,
.tone-soft .glitch {
    text-shadow: -2px -1px 0 rgba(37, 244, 238, 0.9), 2px 1px 0 rgba(254, 44, 85, 0.85);
}

@media (min-width: 48rem) {
    .hero .glitch {
        text-shadow: -3px -2px 0 var(--cyan), 3px 2px 0 var(--pink);
    }
}

.motion-ok .glitch {
    animation: glitch-burst 6.5s steps(1, end) infinite;
}

.motion-ok .case .glitch,
.motion-ok .contact .glitch,
.motion-ok .star .glitch {
    animation-delay: 2.2s;
}

@keyframes glitch-burst {
    0%, 88%, 100% { transform: none; }
    89% { transform: translateX(-2px); text-shadow: -5px 0 0 var(--cyan), 4px 1px 0 var(--pink); }
    90.5% { transform: translateX(2px); text-shadow: 4px -1px 0 var(--cyan), -5px 1px 0 var(--pink); }
    92% { transform: translateX(-1px); text-shadow: -3px 2px 0 var(--cyan), 3px -2px 0 var(--pink); }
    93.5% { transform: none; }
}

/* ---------- LIVE badge ---------- */

.live-badge {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    padding: 3px 10px 3px 8px;
    color: var(--white);
    background: var(--live);
    border-radius: 6px;
    font-family: "Inter", sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

.live-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
}

.motion-ok .live-badge {
    animation: live-pulse 1.8s ease-out infinite;
}

.motion-ok .live-badge::before {
    animation: live-blink 1.8s steps(1, end) infinite;
}

@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(254, 44, 85, 0.65); }
    70%, 100% { box-shadow: 0 0 0 10px rgba(254, 44, 85, 0); }
}

@keyframes live-blink {
    0%, 60% { opacity: 1; }
    61%, 100% { opacity: 0.25; }
}

.live-badge--sm {
    padding: 2px 8px 2px 7px;
    font-size: 0.66rem;
}

.live-badge--corner {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    z-index: 2;
}

/* ---------- buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    min-height: 3.25rem;
    padding-inline: 1.6rem;
    color: var(--ink);
    background: var(--white);
    border: 0;
    border-radius: var(--radius-pill);
    box-shadow: var(--glitch-sm);
    font: inherit;
    font-size: var(--text-base);
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: box-shadow var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}

.button:hover {
    transform: translate(-1px, -1px);
    box-shadow: -4px -4px 0 var(--cyan), 4px 4px 0 var(--pink);
}

.button:active {
    transform: translate(1px, 1px);
    box-shadow: -1px -1px 0 var(--cyan), 1px 1px 0 var(--pink);
}

.button[disabled] {
    cursor: progress;
    opacity: 0.7;
}

.button .arrow {
    transition: transform var(--dur-short) var(--ease-out);
}

.button:hover .arrow {
    transform: translateX(3px);
}

.button--sm {
    min-height: 2.5rem;
    padding-inline: 1.1rem;
    font-size: var(--text-sm);
}

.tone-white .button,
.tone-soft .button,
.lead-form .button {
    color: var(--white);
    background: var(--ink);
}

.text-link {
    color: var(--ink);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--pink);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.text-link:hover {
    text-decoration-color: var(--cyan-ink);
}

.dark .text-link {
    color: var(--on-dark);
}

.dark .text-link:hover {
    text-decoration-color: var(--cyan);
}

.dark .lead-form .text-link,
.dark .form-success .text-link {
    color: var(--ink);
}

/* ---------- header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    color: var(--on-dark);
    background: rgba(1, 1, 1, 0.82);
    border-bottom: 1px solid var(--dark-rule);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
}

.site-header .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    min-height: 4.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--on-dark);
    text-decoration: none;
    line-height: 1.15;
}

.brand svg {
    flex: none;
    width: 38px;
    height: 38px;
}

.brand b {
    display: block;
    font-size: var(--text-base);
    font-weight: 900;
    white-space: nowrap;
}

.brand small {
    display: block;
    color: var(--cyan);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.header-cta {
    display: none;
}

@media (min-width: 30rem) {
    .header-cta {
        display: inline-flex;
    }
}

/* ---------- dark bands ---------- */

.dark {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--on-dark);
    background: var(--ink-2);
}

.hero,
.case,
.contact {
    background: var(--ink);
}

.hero-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(38rem 26rem at 88% 8%, rgba(37, 244, 238, 0.16), transparent 70%),
        radial-gradient(34rem 26rem at 8% 100%, rgba(254, 44, 85, 0.16), transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 100% 44px;
    -webkit-mask-image: linear-gradient(#000 70%, transparent);
    mask-image: linear-gradient(#000 70%, transparent);
    pointer-events: none;
}

.hero-glow--contact {
    background:
        radial-gradient(34rem 24rem at 100% 0%, rgba(254, 44, 85, 0.14), transparent 70%),
        radial-gradient(34rem 24rem at 0% 100%, rgba(37, 244, 238, 0.12), transparent 70%);
}

/* ---------- hero ---------- */

.hero {
    padding-block: var(--space-xl) var(--space-lg);
}

.hero-grid {
    display: grid;
    gap: var(--space-xl);
    align-items: center;
}

.hero h1 {
    font-size: var(--text-display);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.18;
}

.h1-line {
    display: block;
}

.hero .h1-line + .h1-line {
    margin-top: 0.08em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md) var(--space-lg);
    margin-top: var(--space-lg);
}

.hero-note {
    max-width: 22rem;
    color: var(--on-dark-faint);
    font-size: var(--text-sm);
    line-height: 1.55;
}

/* phone mock-up with live overlay */

.live-stage {
    display: grid;
    justify-items: center;
}

.phone {
    position: relative;
    width: min(290px, 78vw);
    aspect-ratio: 9 / 16;
    overflow: hidden;
    color: var(--white);
    background: var(--ink-3);
    border: 7px solid var(--ink-4);
    border-radius: 34px;
    box-shadow: -10px -10px 0 -3px var(--cyan), 10px 10px 0 -3px var(--pink), 0 30px 70px rgba(0, 0, 0, 0.55);
}

.motion-ok .phone {
    animation: phone-float 7s ease-in-out infinite;
}

@keyframes phone-float {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50% { transform: translateY(-8px) rotate(-0.5deg); }
}

/* illustrated live-room background (no real clip or photo inside the phone) */
.phone-art {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.pa-ring {
    transform-origin: 180px 236px;
}

.motion-ok .pa-ring {
    animation: ring-glow 4.5s ease-in-out infinite;
}

@keyframes ring-glow {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.62; }
}

.phone-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.55), transparent 22%, transparent 48%, rgba(0, 0, 0, 0.72));
    pointer-events: none;
}

.phone-top {
    position: absolute;
    inset: 12px 10px auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    line-height: 1.2;
}

.host {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 3px 9px 3px 3px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: var(--radius-pill);
}

.host svg {
    flex: none;
    width: 24px;
    height: 24px;
}

.host b,
.host small {
    display: block;
    white-space: nowrap;
}

.host small {
    color: rgba(255, 255, 255, 0.75);
    font-size: 9.5px;
}

.viewers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 4.6em;
    margin-left: auto;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: var(--radius-pill);
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.viewers svg {
    width: 13px;
    height: 13px;
}

.comments {
    position: absolute;
    left: 10px;
    right: 62px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    height: 9.6rem;
    padding: 0;
    overflow: hidden;
    list-style: none;
    -webkit-mask-image: linear-gradient(transparent, #000 32%);
    mask-image: linear-gradient(transparent, #000 32%);
}

.comments li {
    flex: none;
    width: fit-content;
    max-width: 100%;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.4;
}

.comments b {
    margin-right: 4px;
    color: var(--cyan);
    font-weight: 700;
}

.comments li:nth-child(even) b {
    color: #ff9db0;
}

.comments li.is-new {
    animation: comment-in 420ms var(--ease-out) both;
}

@keyframes comment-in {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

.phone-actions {
    position: absolute;
    right: 8px;
    bottom: 16px;
    display: grid;
    gap: 10px;
    justify-items: center;
}

.heart-btn,
.phone-actions .act {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--white);
    background: rgba(0, 0, 0, 0.45);
    border: 0;
    border-radius: 50%;
}

.heart-btn {
    color: var(--pink);
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    transition: transform 160ms var(--ease-pop);
}

.heart-btn:hover {
    transform: scale(1.08);
}

.heart-btn:active,
.heart-btn.is-pop {
    transform: scale(0.88);
}

.heart-btn svg {
    width: 24px;
    height: 24px;
}

.phone-actions .act svg {
    width: 21px;
    height: 21px;
}

.hearts {
    position: absolute;
    right: 6px;
    bottom: 140px;
    width: 56px;
    height: 62%;
    pointer-events: none;
}

.hearts .heart {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 26px;
    height: 26px;
    margin-left: -13px;
    color: var(--c, var(--pink));
    font-size: 20px;
    line-height: 26px;
    text-align: center;
    animation: heart-up var(--dur, 2.8s) ease-out forwards;
    will-change: transform, opacity;
}

.hearts .heart svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

@keyframes heart-up {
    0% { opacity: 0; transform: translate(0, 0) scale(0.3); }
    12% { opacity: 1; transform: translate(calc(var(--dx, 0px) * 0.2), -18px) scale(1.05); }
    100% { opacity: 0; transform: translate(var(--dx, 0px), var(--rise, -240px)) scale(0.85) rotate(var(--rot, 0deg)); }
}

.live-stage figcaption {
    max-width: 22rem;
    margin-top: 26px;
    color: var(--on-dark-faint);
    font-size: var(--text-sm);
    line-height: 1.5;
    text-align: center;
}

.fig-note {
    display: block;
    font-size: var(--text-xs);
}

.hero-facts {
    display: grid;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding: var(--space-lg) 0 0;
    list-style: none;
    border-top: 1px solid var(--dark-rule);
}

.hero-facts li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--on-dark);
    font-weight: 600;
}

.hero-facts svg {
    flex: none;
    width: 34px;
    height: 34px;
    padding: 7px;
    color: var(--cyan);
    background: rgba(37, 244, 238, 0.1);
    border: 1px solid rgba(37, 244, 238, 0.35);
    border-radius: 10px;
}

.hero-facts li:nth-child(2) svg {
    color: var(--pink);
    background: rgba(254, 44, 85, 0.1);
    border-color: rgba(254, 44, 85, 0.4);
}

@media (min-width: 48rem) {
    .hero {
        padding-block: var(--space-3xl) var(--space-xl);
    }

    .hero-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .phone {
        width: 300px;
    }
}

@media (min-width: 64rem) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: var(--space-2xl);
    }

    .phone {
        width: 320px;
    }
}

/* ---------- client logo marquee ---------- */

.logos {
    padding-block: var(--space-lg) var(--space-md);
    background: var(--white);
    border-bottom: 1px solid var(--rule);
}

.logos-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xs) var(--space-md);
}

.logos-title {
    color: var(--muted);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0;
}

.marquee-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px 0 10px;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--rule);
    border-radius: var(--radius-pill);
    font: inherit;
    font-size: var(--text-xs);
    font-weight: 700;
    cursor: pointer;
}

.marquee-toggle:hover {
    border-color: var(--ink);
}

.marquee-toggle svg {
    width: 16px;
    height: 16px;
}

.marquee {
    margin-top: var(--space-xs);
}

.marquee-track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-md) 0;
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--space-sm) var(--gutter);
    list-style: none;
}

.marquee-track li {
    flex: none;
    padding-inline: 22px;
}

.marquee-track img {
    width: auto;
    height: 40px;
    max-width: 180px;
    object-fit: contain;
    opacity: 0.82;
    transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}

.marquee-track li:hover img {
    opacity: 1;
    transform: scale(1.06);
}

.marquee.is-running {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee.is-running .marquee-track {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    max-width: none;
    margin: 0;
    padding-inline: 0;
    animation: marquee var(--marquee-dur, 40s) linear infinite;
}

.marquee.is-running:hover .marquee-track,
.marquee.is-running:focus-within .marquee-track,
.marquee.is-paused .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (min-width: 48rem) {
    .marquee-track img {
        height: 46px;
    }

    .marquee-track li {
        padding-inline: 30px;
    }
}

/* ---------- scroll reveal ---------- */

.motion-ok [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
}

.motion-ok [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* ---------- problem ---------- */

.problem-grid {
    display: grid;
    gap: var(--space-xl);
}

.problem-list {
    display: grid;
    gap: var(--space-sm);
    padding: 0;
    list-style: none;
}

.problem-list li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-md);
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    transition: box-shadow var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), opacity 600ms var(--ease-out);
}

.problem-list li:hover {
    box-shadow: var(--glitch-sm);
}

.p-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--cyan);
    background: var(--ink);
    border-radius: 12px;
}

.problem-list li:nth-child(even) .p-icon {
    color: var(--pink);
}

.p-icon svg {
    width: 24px;
    height: 24px;
}

.problem-list p {
    margin-top: 4px;
    color: var(--muted);
}

.pull {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    color: var(--on-dark);
    background: var(--ink);
    border-radius: var(--radius-md);
    box-shadow: var(--glitch);
    font-size: var(--text-md);
    font-weight: 700;
    line-height: 1.55;
}

@media (min-width: 40rem) {
    .problem-list li {
        padding: var(--space-lg);
    }
}

@media (min-width: 64rem) {
    .problem-grid {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        gap: var(--space-2xl);
    }

    .problem-grid .section-head {
        position: sticky;
        top: 110px;
        align-self: start;
    }
}

/* ---------- what we build ---------- */

.build {
    padding-block: var(--space-2xl);
}

@media (min-width: 64rem) {
    .build {
        padding-block: var(--space-3xl);
    }
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
    padding: 0;
    list-style: none;
}

.tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 2px 10px;
    border: 1px solid currentColor;
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.6;
}

.tag--people {
    color: var(--cyan);
}

.tag--content {
    color: #ff7a93;
}

.tag--system {
    color: var(--white);
}

.build-grid {
    display: grid;
    gap: var(--space-md);
    padding: 0;
    list-style: none;
}

.tile {
    position: relative;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    align-content: start;
    gap: 6px var(--space-md);
    padding: var(--space-lg);
    background: var(--ink-3);
    border: 1px solid var(--dark-rule);
    border-radius: var(--radius-md);
    transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms var(--ease-out), opacity 600ms var(--ease-out);
}

.tile:hover {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: var(--glitch-sm);
}

.motion-ok .tile:hover {
    transform: translateY(-4px);
}

.tile-icon {
    grid-row: 1 / span 3;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    color: var(--ink);
    background: var(--white);
    border-radius: 14px;
}

.tile--people .tile-icon {
    background: var(--cyan);
}

.tile--content .tile-icon {
    background: var(--pink);
}

.tile-icon svg {
    width: 26px;
    height: 26px;
}

.motion-ok .tile.is-in .tile-icon {
    animation: icon-pop 700ms var(--ease-pop) both;
    animation-delay: calc(var(--i, 0) * 70ms + 150ms);
}

.motion-ok .tile:hover .tile-icon {
    animation: icon-wiggle 500ms ease-in-out;
}

@keyframes icon-pop {
    0% { transform: scale(0.4) rotate(-12deg); }
    100% { transform: none; }
}

@keyframes icon-wiggle {
    0%, 100% { transform: none; }
    25% { transform: rotate(-9deg) scale(1.06); }
    60% { transform: rotate(7deg) scale(1.06); }
}

.tile h3 {
    font-size: var(--text-md);
}

@media (min-width: 40rem) {
    .tile {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-xs);
    }

    .tile-icon {
        grid-row: auto;
        margin-bottom: var(--space-xs);
    }

    .tile h3 {
        margin-top: 4px;
    }
}

.tile p {
    color: var(--on-dark-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.tile q {
    quotes: "\201C" "\201D";
}

.method-note {
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: linear-gradient(120deg, rgba(37, 244, 238, 0.12), rgba(254, 44, 85, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
}

.method-note b {
    display: block;
    font-size: var(--text-md);
}

.method-note p {
    color: var(--on-dark-muted);
}

@media (min-width: 40rem) {
    .build-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 48rem) {
    .method-note {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        align-items: center;
    }
}

@media (min-width: 64rem) {
    .build-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ---------- case study ---------- */

.case {
    padding-block: var(--space-2xl);
}

.case-grid {
    display: grid;
    gap: var(--space-xl);
    align-items: center;
}

.case h2 {
    margin-bottom: var(--space-lg);
    font-size: clamp(1.9rem, 1.2rem + 3vw, 3.3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.case-body p {
    color: var(--on-dark-muted);
    font-size: var(--text-md);
}

.case-body p + p {
    margin-top: var(--space-md);
}

.case-body strong {
    color: var(--white);
    background: linear-gradient(transparent 62%, rgba(254, 44, 85, 0.55) 62%);
}

.case-photo {
    position: relative;
}

.case-photo img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--glitch-lg);
}

.case-photo figcaption {
    margin-top: var(--space-md);
    color: var(--on-dark-faint);
    font-size: var(--text-sm);
}

/* timeline */

.timeline {
    position: relative;
    display: grid;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    padding: 0;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 21px;
    width: 3px;
    background: linear-gradient(var(--cyan), var(--pink));
    border-radius: 2px;
    transform-origin: top;
}

.motion-ok .timeline::before {
    transform: scaleY(0);
    transition: transform 1400ms var(--ease-out);
}

.motion-ok .timeline.is-in::before {
    transform: none;
}

.timeline li {
    position: relative;
    display: grid;
    align-content: start;
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: var(--space-md);
    align-items: center;
}

.timeline small {
    grid-column: 2;
    color: var(--cyan);
    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: 0.06em;
}

.timeline b {
    grid-column: 2;
    font-size: var(--text-base);
    line-height: 1.45;
}

.t-dot {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: var(--white);
    background: var(--ink-3);
    border: 2px solid var(--cyan);
    border-radius: 50%;
}

.t-dot svg {
    width: 22px;
    height: 22px;
}

.t-win .t-dot {
    color: var(--white);
    background: var(--live);
    border-color: var(--pink);
}

.t-win small {
    color: var(--pink);
}

.motion-ok .timeline .t-dot {
    transform: scale(0.3);
    opacity: 0;
    transition: transform 600ms var(--ease-pop), opacity 300ms;
}

.motion-ok .timeline.is-in .t-dot {
    transform: none;
    opacity: 1;
}

.motion-ok .timeline.is-in li:nth-child(2) .t-dot { transition-delay: 300ms; }
.motion-ok .timeline.is-in li:nth-child(3) .t-dot { transition-delay: 600ms; }
.motion-ok .timeline.is-in li:nth-child(4) .t-dot { transition-delay: 900ms; }

.motion-ok .timeline.is-in .t-win .t-dot {
    animation: live-pulse 1.8s ease-out 1.6s infinite;
}

@media (min-width: 64rem) {
    .timeline {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--space-lg);
    }

    .timeline::before {
        top: 21px;
        bottom: auto;
        left: 23px;
        right: calc((100% - 3 * var(--space-lg)) / 4 - 23px);
        width: auto;
        height: 3px;
        background: linear-gradient(90deg, var(--cyan), var(--pink));
        transform-origin: left;
    }

    .motion-ok .timeline::before {
        transform: scaleX(0);
    }

    .timeline li {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        row-gap: 6px;
    }

    .timeline small,
    .timeline b {
        grid-column: 1;
    }

    .t-dot {
        grid-row: auto;
        margin-bottom: var(--space-xs);
    }
}

.case-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
    padding: 0;
    list-style: none;
}

.case-facts li {
    display: grid;
    gap: 2px;
    padding: var(--space-md);
    background: var(--dark-card);
    border: 1px solid var(--dark-rule);
    border-radius: var(--radius-sm);
}

.case-facts span {
    color: var(--cyan);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.case-facts b {
    font-size: var(--text-base);
    line-height: 1.45;
}

.sub-head {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
    font-size: var(--text-lg);
}

.case-shots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md) var(--space-sm);
}

.case-shots .shot:first-child {
    grid-column: 1 / -1;
}

@media (min-width: 48rem) {
    .case-shots {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
        gap: var(--space-md);
    }

    .case-shots .shot:first-child {
        grid-column: auto;
    }
}

.shot img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.ph-frame {
    position: relative;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 6px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    color: var(--on-dark-faint);
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 10px, transparent 10px 20px),
        var(--ink-3);
    border: 2px dashed rgba(255, 255, 255, 0.24);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 700;
}

.ph-frame::before,
.ph-frame::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid var(--cyan);
}

.ph-frame::before {
    top: 8px;
    left: 8px;
    border-right: 0;
    border-bottom: 0;
    border-top-left-radius: 6px;
}

.ph-frame::after {
    right: 8px;
    bottom: 8px;
    border-color: var(--pink);
    border-top: 0;
    border-left: 0;
    border-bottom-right-radius: 6px;
}

.ph-frame svg {
    width: 34px;
    height: 34px;
}

.motion-ok .ph-frame svg {
    animation: ph-breathe 2.8s ease-in-out infinite;
}

@keyframes ph-breathe {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.shot figcaption {
    margin-top: var(--space-xs);
    color: var(--on-dark-muted);
    font-size: var(--text-sm);
    line-height: 1.45;
}

.case-note {
    margin-top: var(--space-lg);
    color: var(--on-dark-faint);
    font-size: var(--text-sm);
}

@media (min-width: 40rem) {
    .case-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .case {
        padding-block: var(--space-3xl);
    }

    .case-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: var(--space-2xl);
    }

    .case-facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ---------- proof ---------- */

.honest-label {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
    max-width: 44rem;
    margin-top: var(--space-md);
    padding: var(--space-md);
    color: #33333b;
    background: var(--soft);
    border-left: 4px solid var(--cyan-ink);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: var(--text-sm);
    line-height: 1.6;
}

.honest-note {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: var(--text-xs);
    line-height: 1.5;
}

.honest-label svg {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: var(--cyan-ink);
}

/* standout seller */

.star {
    position: relative;
    display: grid;
    margin: var(--space-sm) 6px 0;
    overflow: hidden;
    color: var(--on-dark);
    background: var(--ink);
    border-radius: var(--radius-lg);
    box-shadow: var(--glitch-lg);
}

.star-photo {
    background: var(--white);
}

.star-photo img {
    width: 100%;
    max-width: 380px;
    margin-inline: auto;
}

.star-body {
    position: relative;
    padding: var(--space-lg);
}

.star-body::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(30rem 20rem at 100% 0%, rgba(254, 44, 85, 0.18), transparent 70%);
    pointer-events: none;
}

.star-body > * {
    position: relative;
}

.star-kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--cyan);
    font-size: var(--text-sm);
    font-weight: 800;
}

.star-kicker svg {
    width: 22px;
    height: 22px;
}

.star-name {
    margin-top: var(--space-xs);
    font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
    font-weight: 900;
}

.star-name [lang="en"] {
    color: var(--on-dark-faint);
    font-size: 0.55em;
    font-weight: 700;
}

.star-sub {
    margin-top: var(--space-xs);
    color: var(--on-dark-muted);
}

.star-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.star-stats > div {
    padding: var(--space-md);
    background: var(--dark-card);
    border: 1px solid var(--dark-rule);
    border-radius: var(--radius-md);
}

.star-stats dt {
    color: var(--on-dark-muted);
    font-size: var(--text-sm);
    font-weight: 700;
}

.star-stats dd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin-top: 4px;
}

.star-stats .big {
    font-family: "Inter", sans-serif;
    font-size: clamp(3.4rem, 2.4rem + 4vw, 5.4rem);
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    line-height: 1;
    text-shadow: -3px -2px 0 var(--cyan), 3px 2px 0 var(--pink);
}

.star-stats .unit {
    font-size: var(--text-base);
    font-weight: 800;
    line-height: 1.3;
}

.star-quote {
    margin-top: var(--space-lg);
    padding-left: var(--space-md);
    color: var(--on-dark);
    border-left: 3px solid var(--pink);
    font-weight: 600;
}

.star-fine {
    margin-top: var(--space-md);
    color: var(--on-dark-faint);
    font-size: var(--text-xs);
}

@media (min-width: 48rem) {
    .star {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        align-items: stretch;
    }

    .star-photo {
        display: grid;
        align-items: center;
    }

    .star-body {
        padding: var(--space-xl);
        align-self: center;
    }
}

/* standout case: Earn */

.star--earn {
    margin-top: var(--space-2xl);
}

.star-photo--cover {
    position: relative;
    overflow: hidden;
    background: var(--ink-3);
}

.star-photo--cover img {
    width: 100%;
    max-width: none;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.star-kicker--pink {
    color: #ff7a93;
}

.journey {
    display: grid;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.journey li {
    position: relative;
    display: grid;
    gap: 2px;
    padding: var(--space-md);
    background: var(--dark-card);
    border: 1px solid var(--dark-rule);
    border-radius: var(--radius-md);
}

.journey small {
    color: var(--on-dark-faint);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.journey b {
    font-size: clamp(1.1rem, 0.95rem + 0.8vw, 1.45rem);
    font-weight: 900;
    line-height: 1.3;
}

.journey span {
    color: var(--on-dark-muted);
    font-size: var(--text-sm);
}

.journey .journey-win {
    border-color: rgba(254, 44, 85, 0.55);
    background: rgba(254, 44, 85, 0.1);
}

.journey .journey-win b {
    text-shadow: -2px -1px 0 var(--cyan), 2px 1px 0 var(--pink);
}

.journey .journey-partner {
    border-color: rgba(37, 244, 238, 0.45);
    background: rgba(37, 244, 238, 0.07);
}

@media (min-width: 40rem) {
    .journey {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .journey li + li::before {
        content: "→";
        position: absolute;
        top: 50%;
        left: calc(var(--space-sm) * -0.5);
        z-index: 1;
        display: grid;
        place-items: center;
        width: 22px;
        height: 22px;
        margin: -11px 0 0 -11px;
        color: var(--ink);
        background: var(--white);
        border-radius: 50%;
        font-family: "Inter", sans-serif;
        font-size: 13px;
        font-weight: 900;
    }
}

@media (min-width: 48rem) {
    .star--earn {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }

    .star--earn .star-photo {
        order: 2;
        align-self: center;
        padding: var(--space-lg) var(--space-lg) var(--space-lg) 0;
        background: none;
    }

    .star--earn .star-photo img {
        height: auto;
        border-radius: var(--radius-md);
    }

    .star--earn .star-body {
        padding-right: var(--space-lg);
    }
}

/* other students */

.students {
    display: grid;
    gap: var(--space-md);
    padding: 0;
    list-style: none;
}

.students li {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    transition: box-shadow var(--dur-short) var(--ease-out), opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
}

.students li:hover {
    box-shadow: var(--glitch-sm);
}

.students img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.students div {
    padding: var(--space-md) var(--space-md) var(--space-lg);
}

.students h4 {
    font-size: var(--text-lg);
}

.students p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (min-width: 48rem) {
    .students {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .students--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* video, quotes, gallery */

.video-main {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
}

.video-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--ink);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.video-frame iframe,
.video-frame .voomly-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-frame .video-wait {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: var(--space-md);
    color: var(--on-dark-faint);
    font-size: var(--text-sm);
    text-align: center;
}

/* video placeholder: shown while CONFIG.voomlyId is empty */
.video-main--dark {
    max-width: 60rem;
    margin: var(--space-xl) auto 0;
}

.video-main--dark .video-frame {
    background: var(--ink-2);
    border: 1px solid var(--dark-rule);
    box-shadow: var(--glitch-sm);
}

.video-main--dark figcaption {
    color: var(--on-dark-faint);
}

.video-soon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background:
        radial-gradient(60% 80% at 10% 0%, rgba(37, 244, 238, 0.18), transparent 70%),
        radial-gradient(60% 80% at 95% 100%, rgba(254, 44, 85, 0.2), transparent 70%),
        var(--ink-2);
    color: var(--on-dark);
    text-align: center;
}

.video-soon-play {
    display: grid;
    place-items: center;
    width: clamp(52px, 12vw, 76px);
    height: clamp(52px, 12vw, 76px);
    padding-left: 4px;
    color: var(--ink);
    background: var(--white);
    border-radius: 50%;
    box-shadow: -4px -3px 0 var(--cyan), 4px 3px 0 var(--pink);
}

.video-soon-play svg {
    width: 46%;
    height: 46%;
}

.video-soon-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Inter", "Noto Sans Thai", sans-serif;
}

.video-soon-brand svg {
    width: 28px;
    height: 28px;
}

.video-soon-brand b {
    font-size: clamp(1.05rem, 0.9rem + 1vw, 1.5rem);
    font-weight: 900;
}

.video-soon-brand small {
    color: var(--on-dark-faint);
    font-size: var(--text-xs);
    font-weight: 600;
}

.video-soon-badge {
    padding: 3px 12px;
    color: var(--white);
    background: var(--live);
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: 800;
}

.video-grid {
    display: grid;
    gap: var(--space-lg);
}

.video-grid figcaption,
.video-main figcaption {
    margin-top: var(--space-sm);
    color: var(--muted);
    font-size: var(--text-sm);
}

@media (min-width: 48rem) {
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.quotes {
    columns: 1;
    column-gap: var(--space-lg);
}

.quotes figure {
    break-inside: avoid;
    margin-bottom: var(--space-lg);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
}

.quotes img {
    width: 100%;
}

.quotes figcaption {
    padding: var(--space-sm) var(--space-md);
    color: var(--muted);
    font-size: var(--text-xs);
}

@media (min-width: 40rem) {
    .quotes {
        columns: 2;
    }
}

@media (min-width: 64rem) {
    .quotes {
        columns: 3;
    }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
}

.gallery figure {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.gallery img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 600ms var(--ease-out);
}

.gallery figure:hover img {
    transform: scale(1.04);
}

.gallery figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: var(--space-lg) var(--space-sm) var(--space-xs);
    color: var(--on-dark);
    background: linear-gradient(transparent, rgba(1, 1, 1, 0.85));
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1.4;
}

@media (min-width: 64rem) {
    .gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--space-md);
    }
}

/* ---------- framework (how it works) ---------- */

.framework {
    position: relative;
    display: grid;
    gap: var(--space-lg);
    padding: 0;
    list-style: none;
}

.framework::before {
    content: "";
    position: absolute;
    top: 30px;
    height: var(--fw-len, calc(100% - 60px));
    left: 28px;
    width: 3px;
    background: linear-gradient(var(--cyan), var(--pink));
    border-radius: 2px;
    transform-origin: top;
}

.motion-ok .framework::before {
    transform: scaleY(0);
    transition: transform 1200ms var(--ease-out);
}

.motion-ok .framework.is-in::before {
    transform: none;
}

/* the travelling "signal" dot */
.framework::after {
    content: "";
    position: absolute;
    top: 30px;
    left: 23px;
    width: 13px;
    height: 13px;
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: 50%;
    opacity: 0;
}

.motion-ok .framework.is-in::after {
    animation: fw-travel-y 3.6s var(--ease-out) 1.2s infinite;
}

@keyframes fw-travel-y {
    0% { opacity: 0; transform: translateY(0); }
    10% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; transform: translateY(var(--fw-len, 400px)); }
}

.fw-step {
    position: relative;
    display: grid;
    align-content: start;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: var(--space-md);
    align-items: start;
}

.fw-node {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    color: var(--white);
    background: var(--ink);
    border-radius: 50%;
    box-shadow: -3px -3px 0 var(--cyan), 3px 3px 0 var(--pink);
}

.fw-node svg {
    width: 28px;
    height: 28px;
}

.fw-num {
    position: absolute;
    top: -6px;
    right: -8px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: var(--white);
    background: var(--live);
    border: 2px solid var(--soft);
    border-radius: 50%;
    font-family: "Inter", sans-serif;
    font-size: var(--text-xs);
    font-weight: 900;
}

.fw-step--last .fw-node::after {
    content: "";
    position: absolute;
    inset: -9px;
    border: 2px dashed var(--pink-ink);
    border-radius: 50%;
}

.motion-ok .fw-step--last .fw-node::after {
    animation: spin 9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.motion-ok .framework .fw-node {
    transform: scale(0.4);
    opacity: 0;
    transition: transform 650ms var(--ease-pop), opacity 300ms;
}

.motion-ok .framework .fw-card {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
}

.motion-ok .framework.is-in .fw-node,
.motion-ok .framework.is-in .fw-card {
    transform: none;
    opacity: 1;
}

.motion-ok .framework.is-in .fw-step:nth-child(2) .fw-node,
.motion-ok .framework.is-in .fw-step:nth-child(2) .fw-card { transition-delay: 350ms; }
.motion-ok .framework.is-in .fw-step:nth-child(3) .fw-node,
.motion-ok .framework.is-in .fw-step:nth-child(3) .fw-card { transition-delay: 700ms; }

.fw-card {
    padding: var(--space-lg);
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
}

.fw-card small {
    display: block;
    color: var(--cyan-ink);
    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.3;
}

.fw-card h3 {
    margin-bottom: var(--space-md);
    font-size: var(--text-lg);
    font-weight: 800;
}

.fw-loop {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: fit-content;
    max-width: 100%;
    margin: var(--space-xl) auto 0;
    padding: 10px 18px 10px 10px;
    color: var(--on-dark);
    background: var(--ink);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    line-height: 1.5;
}

.fw-loop b {
    color: var(--cyan);
}

.fw-loop-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--ink);
    background: var(--cyan);
    border-radius: 50%;
}

.fw-loop-icon svg {
    width: 22px;
    height: 22px;
}

.motion-ok .fw-loop-icon svg {
    animation: spin 6s linear infinite;
}

@media (min-width: 64rem) {
    .framework {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-lg);
    }

    .framework::before {
        top: 38px;
        bottom: auto;
        left: 38px;
        right: calc((100% - 2 * var(--space-lg)) / 3 - 38px);
        width: auto;
        height: 3px;
        background: linear-gradient(90deg, var(--cyan), var(--pink));
        transform-origin: left;
    }

    .motion-ok .framework::before {
        transform: scaleX(0);
    }

    .framework::after {
        top: 33px;
        left: 33px;
    }

    .motion-ok .framework.is-in::after {
        animation-name: fw-travel-x;
    }

    @keyframes fw-travel-x {
        0% { opacity: 0; transform: translateX(0); }
        10% { opacity: 1; }
        85% { opacity: 1; }
        100% { opacity: 0; transform: translateX(var(--fw-len, 600px)); }
    }

    .fw-step {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-lg);
    }

    .fw-node {
        width: 76px;
        height: 76px;
    }

    .fw-node svg {
        width: 34px;
        height: 34px;
    }
}

/* check lists */

.check-list {
    display: grid;
    gap: var(--space-xs);
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    color: #2b2b31;
    line-height: 1.6;
}

.check-list li::before {
    content: "";
    position: absolute;
    top: 0.35em;
    left: 0;
    width: 18px;
    height: 18px;
    background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%2325F4EE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
    border-radius: 50%;
}

.check-list--no li::before {
    background: var(--rule) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M6 6l6 6M12 6l-6 6' fill='none' stroke='%235c5c66' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.check-list--no li {
    color: var(--muted);
}

.fit {
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

.fit > div {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}

.fit-yes {
    background: var(--white);
    border: 2px solid var(--ink);
    box-shadow: var(--glitch-sm);
}

.fit-no {
    background: transparent;
    border: 1.5px dashed var(--field-rule);
}

.fit h3 {
    margin-bottom: var(--space-md);
    font-size: var(--text-lg);
    font-weight: 800;
}

@media (min-width: 48rem) {
    .fit {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- credentials ---------- */

.creds {
    display: grid;
    gap: var(--space-xl);
    align-items: center;
}

.creds-photo {
    padding: 0 10px 10px 8px;
}

.creds-photo img {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--glitch-lg);
}

.creds h2 {
    font-weight: 900;
}

.creds-name {
    margin-top: var(--space-xs);
    color: var(--muted);
    font-weight: 600;
}

.cred-line {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
    padding: 0;
    list-style: none;
}

.cred-line li {
    padding: 6px 14px;
    background: var(--soft);
    border: 1px solid var(--rule);
    border-radius: 18px;
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.5;
}

.cred-line li:first-child {
    color: var(--on-dark);
    background: var(--ink);
    border-color: var(--ink);
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.stats > div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    padding: var(--space-md);
    background: var(--ink);
    color: var(--on-dark);
    border-radius: var(--radius-md);
}

.stats dd {
    font-family: "Inter", "Noto Sans Thai", sans-serif;
    font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    line-height: 1.15;
    text-shadow: -2px -1px 0 var(--cyan), 2px 1px 0 var(--pink);
}

.stats dt {
    margin-top: 4px;
    color: var(--on-dark-muted);
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1.45;
}

.creds-story {
    margin-top: var(--space-lg);
    color: #2b2b31;
}

.creds-story + .creds-story {
    margin-top: var(--space-md);
}

.creds-event {
    margin-top: var(--space-lg);
}

.creds-event img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.creds-event figcaption {
    margin-top: var(--space-xs);
    color: var(--muted);
    font-size: var(--text-xs);
}

@media (min-width: 64rem) {
    .creds {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        gap: var(--space-2xl);
    }
}

/* ---------- contact ---------- */

.contact {
    padding-block: var(--space-2xl);
}

.contact-grid {
    display: grid;
    gap: var(--space-xl);
}

.contact h2 {
    font-size: var(--text-display);
    font-weight: 900;
}

.contact-side p {
    color: var(--on-dark-muted);
}

.contact-alt {
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--dark-rule);
}

.contact-alt p {
    font-size: var(--text-sm);
}

.line-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    width: fit-content;
    min-height: 2.75rem;
    padding: 0 1.1rem 0 0.8rem;
    color: var(--on-dark);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}

.line-link svg {
    width: 22px;
    height: 22px;
}

.line-link:hover {
    color: var(--ink);
    background: var(--white);
}

.lead-form {
    margin: 0 6px;
    padding: var(--space-lg);
    color: var(--text);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--glitch-lg);
}

.form-grid {
    display: grid;
    gap: var(--space-md);
}

.field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.field label {
    font-size: var(--text-sm);
    font-weight: 700;
}

.field .opt {
    color: var(--muted);
    font-weight: 500;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 3rem;
    padding: 10px 14px;
    color: var(--text);
    background: var(--white);
    border: 1.5px solid var(--field-rule);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: var(--text-base);
    transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}

.field ::placeholder {
    color: #75757f;
}

.field textarea {
    min-height: 6rem;
    resize: vertical;
}

.field select {
    appearance: none;
    padding-right: 40px;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23121212' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center / 12px no-repeat;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: var(--muted);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
    outline: none;
    border-color: var(--ink);
    box-shadow: -3px -3px 0 var(--cyan), 3px 3px 0 var(--pink);
}

.field [aria-invalid="true"] {
    background-color: var(--error-wash);
    border-color: var(--error);
}

.field-error {
    color: var(--error);
    font-size: var(--text-xs);
    font-weight: 600;
}

.field-error:empty {
    display: none;
}

.consent {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: var(--space-sm);
    align-items: start;
    font-size: var(--text-sm);
    line-height: 1.55;
}

.consent input {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--ink);
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-actions {
    display: grid;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
}

.form-actions .button {
    width: 100%;
}

.form-status {
    font-size: var(--text-sm);
    font-weight: 600;
}

.form-status.is-error {
    color: var(--error);
}

.form-status a {
    color: inherit;
}

.form-success {
    margin: 0 6px;
    padding: var(--space-xl) var(--space-lg);
    color: var(--text);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--glitch-lg);
}

.form-success:focus {
    outline: none;
}

.form-success h3 {
    font-size: var(--text-xl);
}

.form-success p {
    margin-top: var(--space-sm);
    color: #2b2b31;
}

.form-success svg {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
}

@media (min-width: 40rem) {
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .field--full,
    .consent,
    .form-actions {
        grid-column: 1 / -1;
    }

    .lead-form {
        padding: var(--space-xl);
    }
}

@media (min-width: 64rem) {
    .contact {
        padding-block: var(--space-3xl);
    }

    .contact-grid {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: var(--space-2xl);
    }
}

/* ---------- footer ---------- */

.site-footer {
    padding-block: var(--space-xl) calc(var(--space-xl) + 84px);
    color: var(--on-dark-faint);
    background: var(--ink-2);
    border-top: 1px solid var(--dark-rule);
    font-size: var(--text-sm);
}

.foot-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--dark-rule);
}

.foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-lg);
    padding: 0;
    list-style: none;
}

.foot-links a {
    color: var(--on-dark);
    text-decoration: none;
    white-space: nowrap;
}

.foot-links a:hover {
    color: var(--cyan);
}

.disclaimer {
    max-width: 52rem;
    margin-top: var(--space-lg);
    line-height: 1.6;
}

.copyright {
    margin-top: var(--space-md);
}

@media (min-width: 60rem) {
    .site-footer {
        padding-bottom: var(--space-xl);
    }
}

/* ---------- sticky mobile CTA ---------- */

.sticky-cta {
    position: fixed;
    inset: auto 12px max(12px, env(safe-area-inset-bottom));
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: 8px 8px 8px 18px;
    color: var(--on-dark);
    background: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sticky);
    transition: transform 260ms var(--ease-out), opacity 260ms var(--ease-out);
}

.sticky-cta span {
    min-width: 0;
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.3;
}

.sticky-cta .button {
    flex: none;
    min-height: 2.75rem;
}

.sticky-cta.is-hidden {
    opacity: 0;
    transform: translateY(calc(100% + 24px));
    pointer-events: none;
}

@media (min-width: 60rem) {
    .sticky-cta {
        display: none;
    }
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 1ms !important;
        transition-delay: 0ms !important;
    }
}
