:root {
    --ink: #000000;
    --soft-ink: #0a0a0a;
    --graphite: #111111;
    --graphite-2: #171717;
    --paper: #ffffff;
    --mist: #f5f5f3;
    --silver: #d6d3ca;
    --ash: #a5a5a5;
    --line: rgba(255, 255, 255, 0.14);
    --line-dark: rgba(0, 0, 0, 0.12);
    --brand: #E94B7F;
    --brand-deep: #B83560;
    --brand-soft: rgba(233, 75, 127, 0.16);
    --signal: #7cc7ff;
    /* Single font stack — handles EN + Thai through fallback chain */
    --font: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", "Sukhumvit Set", "Noto Sans Thai", "Helvetica Neue", Arial, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--ink);
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font);
    line-height: 1.55;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

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

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

.text-balance {
    text-wrap: balance;
}

/* Thai headlines: break only at spaces / <wbr> word boundaries,
   never mid-word — pretty on desktop, graceful wrap on mobile. */
.nice-break {
    /* Thai headlines: each word/phrase is wrapped in .nowrap and separated
       by <wbr>, so a line can break only BETWEEN units, never inside one.
       text-wrap: normal disables the balancer (which breaks Thai mid-word). */
    text-wrap: normal;
}

.nowrap {
    white-space: nowrap;
}

/* Hero headline clauses: each clause is its own line; clause 2 then wraps
   internally at its word boundaries on narrow screens. */
.hl-line {
    display: block;
}

.text-link {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.section-dark {
    background: var(--ink);
    color: var(--paper);
}

.section-light {
    background: var(--mist);
    color: var(--ink);
}

.section-shell {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}

.section-shell.narrow {
    width: min(960px, calc(100% - 40px));
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(36px, 7vw, 100px);
    align-items: center;
}

/* ────────── TYPE SCALE ────────── */
.eyebrow {
    margin-bottom: 16px;
    color: var(--silver);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: #555555;
}

.eyebrow.brand {
    color: var(--brand);
    letter-spacing: 0.22em;
}

h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(40px, 7.4vw, 88px);
    line-height: 1.06;
}

h2 {
    font-size: clamp(32px, 5.4vw, 64px);
    line-height: 1.08;
}

h3 {
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.2;
}

p {
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(17px, 1.55vw, 20px);
    line-height: 1.6;
}

p + p {
    margin-top: 14px;
}

.section-light p {
    color: rgba(0, 0, 0, 0.66);
}

/* Thai-specific bumps */
body[data-lang="th"] h1 {
    line-height: 1.2;
    letter-spacing: 0;
}

body[data-lang="th"] h2 {
    line-height: 1.22;
    letter-spacing: 0;
}

body[data-lang="th"] h3 {
    line-height: 1.34;
    letter-spacing: 0;
}

body[data-lang="th"] p,
body[data-lang="th"] li,
body[data-lang="th"] dd,
body[data-lang="th"] dt,
body[data-lang="th"] span,
body[data-lang="th"] em {
    line-height: 1.7;
    word-break: keep-all;
}

body[data-lang="th"] .cinematic-line {
    line-height: 1.16;
}

.brand-mark {
    color: var(--brand);
    position: relative;
    display: inline-block;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: auto 0 4%;
    height: 4px;
    background: var(--brand);
    transform-origin: left;
    transform: scaleX(0);
    animation: underlineSlide 1400ms var(--ease) 600ms forwards;
}

@keyframes underlineSlide {
    to { transform: scaleX(1); }
}

/* ────────── NAV ────────── */
#navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 clamp(18px, 4vw, 52px);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background 300ms var(--ease), border-color 300ms var(--ease);
}

#navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    border-color: var(--line);
}

.nav-logo img {
    width: 118px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.4vw, 28px);
}

.nav-links a,
.language-toggle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: color 220ms ease;
}

.nav-links a:hover,
.language-toggle:hover {
    color: var(--paper);
}

/* Nav menu items enlarged ~50% per client */
.nav-links a {
    font-size: 19px;
}

.nav-end {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-toggle {
    min-width: 42px;
    height: 32px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    cursor: pointer;
}

.nav-contact {
    color: rgba(255, 255, 255, 0.82);
    font-size: 19px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: color 220ms ease;
}

.nav-contact:hover {
    color: var(--paper);
}

.nav-cta {
    min-height: 36px;
    padding: 0 16px;
    font-size: 12px;
}

/* ────────── HERO — full-screen video background ────────── */
.hero {
    position: relative;
    width: 100%;
    min-height: 100svh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px clamp(20px, 5vw, 64px) 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    /* Brighter + more vivid footage so it reads "alive", not dim */
    filter: brightness(1.08) saturate(1.14) contrast(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        /* Light top-to-bottom scrim — center stays open/bright, bottom kept
           anchored just enough for the white stats row. */
        linear-gradient(180deg, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.10) 42%, rgba(0, 0, 0, 0.34) 74%, rgba(0, 0, 0, 0.82) 100%),
        /* Brand glow, dialled up for the cool factor. */
        radial-gradient(circle at 80% 16%, rgba(233, 75, 127, 0.26), transparent 44%),
        /* Soft left scrim only where the copy sits — fades out by mid-frame. */
        linear-gradient(90deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.16) 44%, transparent 68%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(820px, 100%);
}

.hero-content h1 {
    margin-top: 16px;
    /* Keep the white headline crisp now that the background is brighter */
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45), 0 1px 4px rgba(0, 0, 0, 0.35);
}

.hero-copy {
    width: min(560px, 100%);
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(18px, 1.75vw, 22px);
    line-height: 1.6;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

body[data-lang="th"] .hero-copy {
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.hero-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 56px);
    width: min(820px, 100%);
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stats div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-stats strong {
    color: var(--paper);
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 800;
    font-feature-settings: "tnum";
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero-stats span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-corner {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-corner.top-right {
    top: 96px;
    right: clamp(20px, 5vw, 64px);
}

.hero-corner.bottom-right {
    right: clamp(20px, 5vw, 64px);
    bottom: 96px;
}

.frame-tag,
.frame-live {
    padding: 7px 14px;
    color: var(--paper);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.frame-tag {
    border-color: var(--brand);
}

.frame-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.frame-live i {
    width: 7px;
    height: 7px;
    background: var(--brand);
    border-radius: 999px;
    animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.7); }
}

.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    z-index: 3;
    width: 1px;
    height: 54px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.22);
}

.scroll-indicator span {
    display: block;
    width: 100%;
    height: 20px;
    background: var(--brand);
    animation: scrollPulse 1.8s infinite;
}

/* ────────── BUTTONS ────────── */
.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 240ms var(--ease), background 240ms var(--ease), border-color 240ms var(--ease), color 240ms var(--ease), box-shadow 240ms ease;
    will-change: transform;
}

.button.large {
    min-height: 58px;
    padding: 0 34px;
    font-size: 15px;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--paper);
    background: var(--brand);
}

.button-primary:hover {
    background: var(--brand-deep);
    box-shadow: 0 14px 44px rgba(233, 75, 127, 0.4);
}

.button-secondary {
    color: var(--paper);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.32);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--brand);
}

/* ────────── SECTION SHARED ────────── */
.stories,
.framework,
.process,
.technology,
.trust,
.strategy,
.capabilities,
.insight,
.gallery {
    padding: clamp(86px, 12vw, 150px) 0;
}

.trusted {
    padding: clamp(40px, 6vw, 72px) 0;
}

.section-heading {
    width: min(880px, 100%);
    margin-bottom: clamp(42px, 7vw, 72px);
}

.section-lead {
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.66);
    font-size: clamp(17px, 1.55vw, 20px);
}

.section-light .section-lead {
    color: rgba(0, 0, 0, 0.6);
}

/* ────────── TRUSTED MARQUEE ────────── */
.trusted {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--soft-ink), var(--ink));
}

.trusted-label {
    color: var(--ash);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.marquee {
    position: relative;
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 44px;
    padding-right: 44px;
    white-space: nowrap;
    animation: marqueeScroll 38s linear infinite;
}

.marquee-item {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(20px, 2.6vw, 32px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    transition: color 240ms ease;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item:hover {
    color: var(--brand);
}

.marquee-dot {
    width: 5px;
    height: 5px;
    background: var(--brand);
    border-radius: 999px;
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ────────── CASE FRAME ────────── */
.case-frame {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 4px;
}

.case-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: transform 700ms var(--ease);
}

.case-frame.contain img {
    object-fit: contain;
}

.case-frame.dark-bg {
    background: var(--ink);
}

.case-frame.uniform img {
    object-fit: cover;
}

/* ────────── METRIC OVERLAY ────────── */
.metric-overlay {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    transform: translateY(calc((1 - var(--reveal, 1)) * 24px));
    opacity: var(--reveal, 1);
    transition: transform 600ms var(--ease), opacity 600ms var(--ease);
}

.metric-overlay.corner-stamp {
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: auto;
    gap: 6px;
    padding: clamp(56px, 8vw, 100px) clamp(24px, 4vw, 48px) clamp(24px, 3vw, 36px) clamp(24px, 4vw, 48px);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.74) 38%, rgba(0, 0, 0, 0.32) 70%, transparent 100%);
    color: var(--paper);
}

.metric-overlay .industry-pill {
    align-self: start;
    width: max-content;
    margin-bottom: 8px;
    padding: 5px 12px;
    color: var(--paper);
    background: var(--brand);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    pointer-events: none;
}

.metric-overlay strong {
    color: var(--paper);
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 800;
    font-feature-settings: "tnum";
    line-height: 1;
    letter-spacing: -0.02em;
}

.metric-overlay.large strong {
    font-size: clamp(38px, 5.6vw, 72px);
}

.metric-overlay.xlarge strong {
    font-size: clamp(44px, 6.6vw, 88px);
}

.metric-overlay em {
    color: rgba(255, 255, 255, 0.84);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.metric-overlay .story-title {
    margin-top: 14px;
    color: var(--paper);
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.005em;
    max-width: 28ch;
}

body[data-lang="th"] .metric-overlay .story-title {
    line-height: 1.4;
}

.metric-overlay .story-meta {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ────────── STORIES — Coke + BLA hero spots ────────── */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: minmax(0, auto);
    gap: 14px;
}

.story-card {
    grid-column: span 3;
    cursor: pointer;
    transition: transform 320ms var(--ease);
}

.story-card.hero-card {
    grid-column: span 6;
}

.story-card.hero-card .case-frame {
    aspect-ratio: 21 / 9;
}

.story-card .case-frame {
    transition: border-color 320ms ease;
}

.story-card:hover .case-frame {
    border-color: rgba(233, 75, 127, 0.5);
}

.story-card:hover .case-frame img {
    transform: scale(1.03);
}

.stories-note {
    margin-top: 36px;
    color: var(--ash);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
}

.stories-note a {
    color: var(--brand);
}

/* ────────── INSIGHT ────────── */
.insight {
    display: grid;
    min-height: 86svh;
    place-items: center;
    /* Lifted from flat black — warm brand-tinted depth, still dark enough for white type */
    background:
        radial-gradient(circle at 28% 72%, rgba(233, 75, 127, 0.22), transparent 42%),
        radial-gradient(circle at 82% 16%, rgba(233, 75, 127, 0.12), transparent 46%),
        linear-gradient(155deg, #1b141b 0%, var(--ink) 60%);
}

.cinematic-line {
    font-size: clamp(40px, 7.4vw, 96px);
    line-height: 1.05;
    letter-spacing: -0.015em;
}

.cinematic-line.muted {
    margin-top: 12px;
}

/* De-emphasised word inside a white headline */
.dim {
    color: rgba(255, 255, 255, 0.42);
}

.insight-copy {
    width: min(720px, 100%);
    margin-top: 38px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.55;
}

body[data-lang="th"] .insight-copy {
    line-height: 1.7;
}

/* ────────── FRAMEWORK ────────── */
.framework-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.framework-card {
    position: relative;
    min-height: 320px;
    padding: 32px 30px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        var(--graphite);
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: transform 300ms var(--ease), border-color 300ms ease;
}

.framework-card::after {
    position: absolute;
    inset: auto -20% -45% -20%;
    height: 200px;
    content: "";
    background: radial-gradient(circle, var(--brand-soft), transparent 62%);
    opacity: 0;
    transition: opacity 300ms ease;
}

.framework-card:hover {
    transform: translateY(-8px);
    border-color: rgba(233, 75, 127, 0.4);
}

.framework-card:hover::after {
    opacity: 1;
}

.framework-card span {
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.18em;
}

.framework-card h3 {
    margin-top: 64px;
    font-size: clamp(22px, 2.6vw, 32px);
    line-height: 1.2;
}

.framework-card p {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.6;
}

body[data-lang="th"] .framework-card h3 {
    line-height: 1.34;
}

body[data-lang="th"] .framework-card p {
    line-height: 1.7;
}

.framework-statement {
    margin-top: 38px;
    color: var(--paper);
    font-size: clamp(22px, 2.8vw, 36px);
    font-weight: 800;
    line-height: 1.2;
}

body[data-lang="th"] .framework-statement {
    line-height: 1.34;
}

/* ────────── CAPABILITIES ────────── */
.capabilities {
    background: var(--mist);
    position: relative;
    overflow: hidden;
}

.capabilities::before {
    content: "";
    position: absolute;
    inset: -10% -5% auto auto;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--brand-soft), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.capabilities .section-shell {
    position: relative;
    z-index: 1;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.capability-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(28px, 3vw, 40px) clamp(24px, 2.6vw, 32px);
    background: var(--paper);
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    transition: transform 320ms var(--ease), border-color 320ms ease, box-shadow 320ms ease;
}

.capability-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), transparent);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 600ms var(--ease);
}

.capability-card:hover {
    transform: translateY(-6px);
    border-color: rgba(233, 75, 127, 0.5);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

.capability-card:hover::before {
    transform: scaleX(1);
}

.cap-index {
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.18em;
}

.capability-card h3 {
    margin-top: 42px;
    color: var(--ink);
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.18;
}

body[data-lang="th"] .capability-card h3 {
    line-height: 1.32;
}

.capability-card > p {
    margin-top: 18px;
    color: rgba(0, 0, 0, 0.66);
    font-size: 16px;
    line-height: 1.65;
}

body[data-lang="th"] .capability-card > p {
    line-height: 1.75;
}

.cap-list {
    display: grid;
    gap: 0;
    margin-top: 28px;
    list-style: none;
}

.cap-list li {
    padding: 14px 0;
    color: rgba(0, 0, 0, 0.78);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cap-list li:first-child {
    border-top-color: rgba(233, 75, 127, 0.4);
}

body[data-lang="th"] .cap-list li {
    line-height: 1.6;
    letter-spacing: 0.02em;
    text-transform: none;
    font-size: 14px;
}

.capability-card .link-arrow {
    margin-top: auto;
    padding-top: 28px;
    color: var(--brand);
}

.capability-card .link-arrow:hover {
    color: var(--brand-deep);
}

/* ────────── PROCESS ────────── */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
    counter-reset: step;
}

.process-step {
    position: relative;
    padding: 36px 26px 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: transform 320ms var(--ease), border-color 320ms ease, background 320ms ease;
}

.process-step::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), transparent);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 600ms var(--ease);
}

.process-step:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(233, 75, 127, 0.4);
}

.process-step:hover::before {
    transform: scaleX(1);
}

.step-num {
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.18em;
}

.process-step h3 {
    margin-top: 28px;
    color: var(--paper);
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.22;
}

body[data-lang="th"] .process-step h3 {
    line-height: 1.34;
}

.process-step p {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.6;
}

body[data-lang="th"] .process-step p {
    line-height: 1.75;
}

.process-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 56px;
}

/* ────────── TECHNOLOGY ────────── */
.technology {
    background:
        radial-gradient(circle at 75% 25%, var(--brand-soft), transparent 30%),
        radial-gradient(circle at 22% 75%, rgba(124, 199, 255, 0.08), transparent 28%),
        linear-gradient(180deg, var(--ink), var(--soft-ink));
}

.tech-device {
    padding: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
}

.device-topbar {
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 4px 8px 16px;
}

.device-topbar > span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
}

.device-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    padding: 4px 10px;
    color: var(--paper);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.device-live i {
    width: 6px;
    height: 6px;
    background: var(--brand);
    border-radius: 999px;
    animation: livePulse 1.4s ease-in-out infinite;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.metric-tile,
.signal-card {
    min-height: 160px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: background 600ms ease, border-color 600ms ease;
}

.metric-tile.wide {
    grid-column: span 2;
}

.metric-tile.flash {
    background: rgba(233, 75, 127, 0.14);
    border-color: rgba(233, 75, 127, 0.55);
}

.metric-tile p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.metric-tile strong {
    display: block;
    margin-top: 16px;
    color: var(--paper);
    font-size: clamp(36px, 5.4vw, 64px);
    font-weight: 800;
    font-feature-settings: "tnum";
    line-height: 1;
    letter-spacing: -0.02em;
}

.signal-card {
    display: flex;
    align-items: end;
    gap: 9px;
}

.signal-card span {
    flex: 1;
    min-height: 30px;
    background: linear-gradient(180deg, var(--signal), rgba(255, 255, 255, 0.22));
    animation: signalWave 2.8s var(--ease) infinite;
}

.signal-card span:nth-child(2) { height: 62px; animation-delay: 120ms; }
.signal-card span:nth-child(3) { height: 108px; animation-delay: 240ms; background: linear-gradient(180deg, var(--brand), rgba(255, 255, 255, 0.2)); }
.signal-card span:nth-child(4) { height: 76px; animation-delay: 360ms; }
.signal-card span:nth-child(5) { height: 132px; animation-delay: 480ms; background: linear-gradient(180deg, var(--brand), rgba(255, 255, 255, 0.2)); }

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 54px;
}

.tech-tags span {
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.06em;
    transition: color 240ms ease, border-color 240ms ease, transform 240ms var(--ease);
}

.tech-tags span:hover {
    color: var(--brand);
    border-color: var(--brand);
    transform: translateY(-2px);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding: 0;
    color: var(--brand);
    background: transparent;
    border: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 240ms ease, transform 240ms ease;
}

.link-arrow::after {
    content: "→";
    transition: transform 240ms var(--ease);
}

.link-arrow:hover {
    color: var(--brand-deep);
}

.link-arrow:hover::after {
    transform: translateX(4px);
}

/* ────────── TRUST ────────── */
.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.timeline::before {
    position: absolute;
    top: 23px;
    right: 12%;
    left: 12%;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

.timeline article {
    position: relative;
    padding: 64px 26px 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.timeline article::before {
    position: absolute;
    top: 16px;
    left: 26px;
    width: 14px;
    height: 14px;
    content: "";
    background: var(--brand);
    border-radius: 999px;
    box-shadow: 0 0 28px rgba(233, 75, 127, 0.6);
}

.timeline span {
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.timeline h3 {
    margin-top: 14px;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.22;
}

body[data-lang="th"] .timeline h3 {
    line-height: 1.34;
}

.timeline p {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.65;
}

body[data-lang="th"] .timeline p {
    line-height: 1.75;
}

.trust-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: stretch;
    margin-top: 64px;
}

.scale-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.scale-item {
    padding: 26px 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.scale-item strong {
    display: block;
    color: var(--paper);
    font-size: clamp(36px, 5.4vw, 68px);
    font-weight: 800;
    font-feature-settings: "tnum";
    line-height: 1;
    letter-spacing: -0.02em;
}

.scale-item span {
    display: block;
    margin-top: 14px;
    color: var(--ash);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.trust-list {
    display: grid;
    align-content: center;
    gap: 0;
    list-style: none;
}

.trust-list li {
    padding: 16px 0;
    color: rgba(255, 255, 255, 0.78);
    border-top: 1px solid var(--line);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
}

body[data-lang="th"] .trust-list li {
    line-height: 1.7;
}

.trust-list li:first-child {
    border-top-color: rgba(233, 75, 127, 0.4);
}

/* ────────── GALLERY ────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.gallery-tile {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
    transition: transform 320ms var(--ease), border-color 320ms ease;
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease);
}

.gallery-tile:hover {
    border-color: var(--brand);
    transform: translateY(-4px);
}

.gallery-tile:hover img {
    transform: scale(1.06);
}

.gallery-tile figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 22px 14px 12px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
    color: var(--paper);
    display: grid;
    gap: 4px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 320ms ease, transform 320ms var(--ease);
}

.gallery-tile:hover figcaption,
.gallery-tile:focus-visible figcaption {
    opacity: 1;
    transform: translateY(0);
}

.g-client {
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.g-event {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.gallery-note {
    margin-top: 32px;
    color: var(--ash);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

/* ────────── STRATEGY ────────── */
.strategy {
    background:
        radial-gradient(circle at 18% 35%, var(--brand-soft), transparent 30%),
        var(--ink);
}

.strategy-shell {
    display: grid;
    gap: clamp(48px, 7vw, 88px);
}

.strategy-form-wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(36px, 6vw, 72px);
    align-items: start;
}

.strategy-promise {
    margin-top: 18px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.04em;
}

.strategy-channels {
    display: grid;
    gap: 0;
    margin-top: 28px;
    list-style: none;
}

.strategy-channels li {
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.strategy-channels li:first-child {
    border-top-color: rgba(233, 75, 127, 0.4);
}

.strategy-channels a {
    text-decoration: none;
    transition: color 200ms ease;
}

.strategy-channels a:hover {
    color: var(--brand);
}

.strategy-form {
    display: grid;
    gap: 18px;
    padding: clamp(22px, 4vw, 32px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.strategy-form fieldset {
    display: grid;
    gap: 14px;
    padding: 0;
    border: 0;
    opacity: 0.35;
    transition: opacity 400ms var(--ease);
    pointer-events: none;
}

.strategy-form fieldset[data-active="true"] {
    opacity: 1;
    pointer-events: auto;
}

.strategy-form legend {
    margin-bottom: 4px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.strategy-form label {
    display: grid;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.strategy-form input,
.strategy-form select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    color: var(--paper);
    background: rgba(0, 0, 0, 0.36);
    border: 1px solid var(--line);
    border-radius: 6px;
    outline: none;
    transition: border-color 240ms ease;
}

.strategy-form input:focus,
.strategy-form select:focus {
    border-color: var(--brand);
}

.strategy-form option {
    color: var(--ink);
}

.strategy-form .button {
    width: 100%;
    margin-top: 8px;
}

.newsletter {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
    padding: clamp(28px, 4vw, 44px);
    background: linear-gradient(120deg, rgba(233, 75, 127, 0.12), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(233, 75, 127, 0.28);
    border-radius: 10px;
}

.newsletter h3 {
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.22;
}

body[data-lang="th"] .newsletter h3 {
    line-height: 1.36;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    height: 50px;
    padding: 0 16px;
    color: var(--paper);
    background: rgba(0, 0, 0, 0.36);
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    transition: border-color 240ms ease;
}

.newsletter-form input:focus {
    border-color: var(--brand);
}

.closing-line {
    margin-top: clamp(40px, 6vw, 80px);
    text-align: center;
}

.closing-line .button {
    margin-top: 36px;
}

/* ────────── CASE MODAL ────────── */
.case-modal {
    width: min(960px, 92vw);
    max-height: 90vh;
    margin: auto;
    padding: 0;
    background: var(--graphite);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--paper);
    overflow: hidden;
}

.case-modal::backdrop {
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.case-modal[open] {
    display: grid;
    grid-template-rows: auto 1fr;
}

.modal-frame {
    aspect-ratio: 3 / 2;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 38px;
    height: 38px;
    color: var(--paper);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-body {
    padding: 28px clamp(24px, 4vw, 36px) 32px;
    overflow-y: auto;
}

.modal-body h3 {
    margin-top: 8px;
    line-height: 1.18;
}

body[data-lang="th"] .modal-body h3 {
    line-height: 1.34;
}

.modal-scope {
    margin-top: 14px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.modal-copy {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
    line-height: 1.65;
}

body[data-lang="th"] .modal-copy {
    line-height: 1.75;
}

.modal-disclaimer {
    margin-top: 18px;
    color: var(--ash);
    font-size: 11px;
    font-style: italic;
    line-height: 1.5;
    letter-spacing: 0.06em;
}

.modal-actions {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

/* ────────── CHAT WIDGET (bottom-left) + LINE ────────── */
.chat-stack {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 60;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    align-items: flex-start;
}

.chat-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px 14px 16px;
    color: var(--paper);
    background: var(--brand);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 18px 50px rgba(233, 75, 127, 0.42), 0 0 0 6px rgba(233, 75, 127, 0.08);
    transition: background 240ms var(--ease), transform 240ms var(--ease), box-shadow 240ms ease;
    position: relative;
}

.chat-toggle:hover {
    background: var(--brand-deep);
    transform: translateY(-2px);
}

.chat-toggle svg {
    transition: opacity 220ms ease, transform 220ms var(--ease);
}

.chat-toggle .chat-icon-close {
    position: absolute;
    left: 16px;
    opacity: 0;
    transform: rotate(-90deg);
}

.chat-toggle[aria-expanded="true"] .chat-icon-open {
    opacity: 0;
    transform: rotate(90deg);
}

.chat-toggle[aria-expanded="true"] .chat-icon-close {
    opacity: 1;
    transform: rotate(0deg);
}

.chat-toggle[aria-expanded="true"] .chat-toggle-label {
    opacity: 0;
    width: 0;
    margin: 0;
    overflow: hidden;
}

.chat-toggle-label {
    transition: opacity 220ms ease, width 320ms var(--ease);
    white-space: nowrap;
}

.chat-pulse {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
    animation: chatPulse 1.6s ease-out infinite;
}

.chat-toggle[aria-expanded="true"] .chat-pulse {
    display: none;
}

@keyframes chatPulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.chat-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 10px 12px;
    color: var(--paper);
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 200ms ease, border-color 200ms ease, transform 200ms var(--ease);
}

.chat-line:hover {
    background: #06c755;
    border-color: #06c755;
    transform: translateY(-2px);
}

.chat-line svg {
    color: #06c755;
    transition: color 200ms ease;
}

.chat-line:hover svg {
    color: var(--paper);
}

/* ────────── CHAT PANEL (slide-up) ────────── */
.chat-panel {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 65;
    display: flex;
    flex-direction: column;
    width: min(380px, calc(100vw - 40px));
    height: min(560px, calc(100vh - 120px));
    background: var(--graphite);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(233, 75, 127, 0.06);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    pointer-events: none;
    transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}

.chat-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(233, 75, 127, 0.16), rgba(233, 75, 127, 0.04));
    border-bottom: 1px solid var(--line);
}

.chat-head-id {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--paper);
    background: var(--brand);
    border-radius: 999px;
    font-family: var(--font);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(233, 75, 127, 0.4);
}

.chat-head-name {
    color: var(--paper);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.chat-head-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.04em;
}

.chat-status-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 999px;
    animation: livePulse 1.6s ease-in-out infinite;
}

.chat-head-close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transition: color 200ms ease, background 200ms ease, border-color 200ms ease;
}

.chat-head-close:hover {
    color: var(--paper);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.chat-msg {
    max-width: 84%;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.55;
    border-radius: 14px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

body[data-lang="th"] .chat-msg {
    line-height: 1.7;
}

.chat-msg.assistant {
    align-self: flex-start;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    align-self: flex-end;
    color: var(--paper);
    background: var(--brand);
    border-bottom-right-radius: 4px;
}

.chat-msg.system {
    align-self: center;
    color: var(--ash);
    background: transparent;
    font-size: 12px;
    font-style: italic;
    max-width: 100%;
    text-align: center;
    padding: 4px 8px;
}

.chat-msg.assistant.typing {
    display: inline-flex;
    gap: 4px;
    padding: 14px 18px;
}

.chat-msg.assistant.typing i {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    animation: chatDot 1.2s ease-in-out infinite;
}

.chat-msg.assistant.typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-msg.assistant.typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatDot {
    0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 18px 12px;
}

.chat-chip {
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: color 200ms ease, background 200ms ease, border-color 200ms ease;
}

.chat-chip:hover {
    color: var(--paper);
    background: rgba(233, 75, 127, 0.16);
    border-color: rgba(233, 75, 127, 0.5);
}

.chat-input {
    display: flex;
    gap: 8px;
    padding: 14px 14px;
    background: rgba(0, 0, 0, 0.36);
    border-top: 1px solid var(--line);
}

.chat-input input {
    flex: 1;
    height: 42px;
    padding: 0 14px;
    color: var(--paper);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: border-color 200ms ease, background 200ms ease;
}

.chat-input input:focus {
    border-color: var(--brand);
    background: rgba(255, 255, 255, 0.1);
}

.chat-send {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--paper);
    background: var(--brand);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background 200ms ease, transform 200ms var(--ease);
}

.chat-send:hover {
    background: var(--brand-deep);
    transform: translateY(-1px);
}

.chat-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.chat-panel-foot {
    padding: 10px 18px;
    color: var(--ash);
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--line);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-align: center;
}

/* Mobile chat panel: full screen */
@media (max-width: 540px) {
    .chat-panel {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 80vh;
        border-radius: 16px 16px 0 0;
    }

    .chat-stack {
        left: 16px;
        bottom: 16px;
    }
}

/* ────────── FLOATING CTA ────────── */
.floating-cta {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    color: var(--paper);
    background: var(--brand);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-decoration: none;
    box-shadow: 0 24px 60px rgba(233, 75, 127, 0.4);
    transform: translateY(120%);
    opacity: 0;
    transition: transform 500ms var(--ease), opacity 500ms ease, background 240ms ease;
}

.floating-cta.visible {
    transform: translateY(0);
    opacity: 1;
}

.floating-cta:hover {
    background: var(--brand-deep);
}

.fc-dot {
    width: 8px;
    height: 8px;
    background: var(--paper);
    border-radius: 999px;
    animation: livePulse 1.4s ease-in-out infinite;
}

/* ────────── CASE DETAIL PAGE ────────── */
.case-page {
    padding-top: 64px;
}

.case-page-head {
    padding: clamp(56px, 9vw, 120px) 0 clamp(36px, 6vw, 72px);
}

.case-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 200ms ease, transform 200ms var(--ease);
}

.case-back:hover {
    color: var(--brand);
    transform: translateX(-4px);
}

.case-page-head h1 {
    font-size: clamp(36px, 6.4vw, 76px);
    line-height: 1.06;
    margin-top: 12px;
    max-width: 22ch;
}

body[data-lang="th"] .case-page-head h1 {
    line-height: 1.18;
}

.case-page-tag {
    margin-top: 22px;
    color: var(--brand);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.case-page-hero {
    position: relative;
    aspect-ratio: 21 / 9;
    margin: 0 0 clamp(64px, 8vw, 100px) 0;
    overflow: hidden;
    background: var(--ink);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.case-page-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-page-body {
    padding: clamp(36px, 6vw, 72px) 0 clamp(64px, 8vw, 110px);
}

.case-meta-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 36px;
}

.case-meta-label {
    color: var(--brand);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.case-meta-value {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.86);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

body[data-lang="th"] .case-meta-value {
    line-height: 1.65;
}

.case-lede {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 400;
    line-height: 1.7;
    max-width: 64ch;
}

body[data-lang="th"] .case-lede {
    line-height: 1.8;
}

.case-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.related {
    padding: clamp(56px, 9vw, 110px) 0;
    border-top: 1px solid var(--line);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.related-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 320ms var(--ease);
}

.related-card:hover {
    transform: translateY(-4px);
}

.related-card .case-frame {
    transition: border-color 320ms ease;
}

.related-card:hover .case-frame {
    border-color: rgba(233, 75, 127, 0.5);
}

.related-card:hover .case-frame img {
    transform: scale(1.04);
}

.related-meta {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    padding: 0 4px;
}

.related-client {
    color: var(--brand);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.related-event {
    color: var(--paper);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
    .related-grid { grid-template-columns: 1fr; }
    .case-page-hero { aspect-ratio: 4 / 3; }
}

/* ────────── PRESS STRIP ────────── */
.press {
    padding: clamp(48px, 7vw, 88px) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--soft-ink);
}

.press-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
    list-style: none;
}

.press-strip li {
    display: grid;
    gap: 6px;
    padding: 18px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: border-color 240ms ease, transform 240ms var(--ease);
}

.press-strip li:hover {
    border-color: rgba(233, 75, 127, 0.4);
    transform: translateY(-3px);
}

.press-strip strong {
    color: var(--paper);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.press-strip span {
    color: var(--ash);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body[data-lang="th"] .press-strip span {
    line-height: 1.6;
    letter-spacing: 0.02em;
    text-transform: none;
    font-size: 12px;
}

@media (max-width: 1024px) {
    .press-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .press-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ────────── FAQ ────────── */
.faq {
    padding: clamp(86px, 12vw, 150px) 0;
    background:
        radial-gradient(circle at 70% 30%, var(--brand-soft), transparent 30%),
        var(--ink);
}

.faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 880px;
}

.faq-item {
    border-top: 1px solid var(--line);
}

.faq-item:first-child {
    border-top: 1px solid rgba(233, 75, 127, 0.4);
}

.faq-item:last-child {
    border-bottom: 1px solid var(--line);
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    padding: 22px 0;
    color: var(--paper);
    background: transparent;
    border: 0;
    font-family: var(--font);
    font-size: clamp(16px, 1.7vw, 19px);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.005em;
    text-align: left;
    cursor: pointer;
    transition: color 240ms ease;
}

body[data-lang="th"] .faq-q {
    line-height: 1.6;
}

.faq-q:hover {
    color: var(--brand);
}

.faq-q > span {
    flex: 1;
}

.faq-mark {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.faq-mark::before,
.faq-mark::after {
    content: "";
    position: absolute;
    background: var(--brand);
    transition: transform 320ms var(--ease);
}

.faq-mark::before {
    inset: 7px 0 7px 0;
    height: 2px;
}

.faq-mark::after {
    inset: 0 7px 0 7px;
    width: 2px;
}

.faq-q[aria-expanded="true"] .faq-mark::after {
    transform: scaleY(0);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 400ms var(--ease);
}

.faq-item.open .faq-a {
    max-height: 400px;
}

.faq-a p {
    padding: 0 0 22px 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.65;
    max-width: 64ch;
}

body[data-lang="th"] .faq-a p {
    line-height: 1.78;
}

/* ────────── TESTIMONIALS (inside Trust section) ────────── */
.testimonials {
    margin-top: clamp(48px, 7vw, 88px);
    padding-top: clamp(48px, 6vw, 72px);
    border-top: 1px solid var(--line);
}

.testimonials-eyebrow {
    margin-bottom: 28px;
    color: var(--brand);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.testimonial-card {
    position: relative;
    padding: 32px 28px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color 320ms ease, transform 320ms var(--ease);
}

.testimonial-card:hover {
    border-color: rgba(233, 75, 127, 0.4);
    transform: translateY(-4px);
}

.testimonial-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 28px;
    width: 36px;
    height: 2px;
    background: var(--brand);
}

.testimonial-quote {
    color: rgba(255, 255, 255, 0.86);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

body[data-lang="th"] .testimonial-quote {
    line-height: 1.75;
}

.testimonial-attribution {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--ash);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body[data-lang="th"] .testimonial-attribution {
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .testimonials-grid { grid-template-columns: 1fr; }
}

/* ────────── CONSENT BANNER + MODAL ────────── */
.consent-banner {
    position: fixed;
    inset: auto 20px 20px 20px;
    z-index: 80;
    display: none;
    padding: 18px 22px;
    background: rgba(10, 10, 10, 0.96);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 4px rgba(233, 75, 127, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}

.consent-banner.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.consent-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(16px, 3vw, 32px);
    align-items: center;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.consent-title {
    color: var(--paper);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
}

body[data-lang="th"] .consent-title {
    line-height: 1.5;
}

.consent-body {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.55;
    max-width: 64ch;
}

body[data-lang="th"] .consent-body {
    line-height: 1.7;
}

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.consent-btn {
    min-height: 38px;
    padding: 0 16px;
    font-size: 12px;
    letter-spacing: 0.04em;
}

/* Cookie preferences modal */
.consent-modal {
    width: min(560px, 92vw);
    max-height: 90vh;
    margin: auto;
    padding: 0;
    background: var(--graphite);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--paper);
    overflow: hidden;
}

.consent-modal::backdrop {
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.consent-modal[open] {
    display: block;
}

.consent-modal .modal-body {
    padding: 32px clamp(24px, 4vw, 40px) 28px;
    overflow-y: auto;
    max-height: 90vh;
}

.consent-modal h3 {
    margin-top: 8px;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.22;
}

body[data-lang="th"] .consent-modal h3 {
    line-height: 1.36;
}

.consent-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.consent-row:first-of-type {
    margin-top: 18px;
    border-top-color: rgba(233, 75, 127, 0.4);
}

.consent-row-name {
    color: var(--paper);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
    margin: 0;
}

.consent-row-desc {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    line-height: 1.55;
}

body[data-lang="th"] .consent-row-desc {
    line-height: 1.7;
}

.consent-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.consent-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.consent-switch-track {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: background 240ms ease, border-color 240ms ease;
}

.consent-switch-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--paper);
    border-radius: 999px;
    transition: transform 240ms var(--ease);
}

.consent-switch input:checked + .consent-switch-track {
    background: var(--brand);
    border-color: var(--brand);
}

.consent-switch input:checked + .consent-switch-track::after {
    transform: translateX(18px);
}

.consent-switch.locked {
    cursor: not-allowed;
    opacity: 0.78;
}

.consent-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.consent-modal-actions .button {
    flex: 1;
    min-width: 160px;
}

/* Footer link to re-open prefs */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border: 0;
    padding: 0;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
    transition: color 200ms ease;
}

.footer-link:hover {
    color: var(--brand);
}

@media (max-width: 760px) {
    .consent-inner {
        grid-template-columns: 1fr;
    }
    .consent-actions {
        justify-content: stretch;
    }
    .consent-btn {
        flex: 1;
    }
    .footer-links {
        align-items: flex-start;
    }
}

/* ────────── FOOTER ────────── */
footer {
    padding: 44px 20px;
    background: #050505;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    align-items: center;
    justify-content: space-between;
    width: min(1280px, 100%);
    margin: 0 auto;
}

.footer-inner img {
    width: 108px;
    filter: brightness(0) invert(1);
}

.footer-inner p {
    color: rgba(255, 255, 255, 0.46);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
}

/* ────────── REVEAL ────────── */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes scrollPulse {
    0% { transform: translateY(-22px); opacity: 0; }
    35% { opacity: 1; }
    100% { transform: translateY(58px); opacity: 0; }
}

@keyframes signalWave {
    0%, 100% { transform: scaleY(0.7); opacity: 0.7; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* ────────── RESPONSIVE ────────── */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .two-column,
    .trust-bottom,
    .strategy-form-wrap,
    .newsletter {
        grid-template-columns: 1fr;
    }

    .stories-grid {
        grid-template-columns: 1fr;
    }
    .story-card,
    .story-card.hero-card {
        grid-column: span 1;
    }
    .story-card.hero-card .case-frame {
        aspect-ratio: 16 / 9;
    }

    .capability-grid,
    .framework-grid,
    .timeline,
    .scale-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        display: none;
    }

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

    .hero-corner.top-right {
        top: 80px;
    }
    .hero-corner.bottom-right {
        bottom: 80px;
    }
}

@media (max-width: 760px) {
    #navbar {
        height: 58px;
    }

    .nav-logo img {
        width: 100px;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    /* Compact chat toggle to an icon paired with LINE so it never overlaps
       page content on phones / tablets. */
    .chat-toggle .chat-toggle-label {
        display: none;
    }

    .chat-toggle {
        padding: 14px;
    }

    .hero {
        padding: 92px 20px 80px;
        min-height: 92svh;
    }

    .hero-corner.top-right,
    .hero-corner.bottom-right {
        display: none;
    }

    .button {
        width: 100%;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .floating-cta span {
        display: none;
    }

    .floating-cta {
        padding: 14px;
        right: 16px;
        bottom: 16px;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 540px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-tile {
        aspect-ratio: 16 / 10;
    }

    .case-frame.uniform {
        aspect-ratio: 4 / 3;
    }

    .story-card.hero-card .case-frame {
        aspect-ratio: 4 / 3;
    }

    .metric-overlay.corner-stamp {
        padding: 44px 18px 18px;
    }

    .metric-overlay strong {
        font-size: clamp(28px, 8vw, 44px);
    }

    .metric-overlay.large strong {
        font-size: clamp(32px, 9vw, 50px);
    }

    .metric-overlay.xlarge strong {
        font-size: clamp(36px, 10vw, 58px);
    }

    .marquee-item {
        font-size: 22px;
    }

    .marquee-track {
        animation-duration: 28s;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .marquee-track {
        animation: none;
    }
}
