/* =====================================================================
   BIT Solutions — Awake Authentic Edition
   White + pastel gradients, sans-serif headlines, italic serif accents
   ===================================================================== */

/* === DESIGN TOKENS === */
:root {
    /* Light mode (default) */
    --bg:           #ffffff;
    --bg-soft:      #fafafa;
    --bg-pill:      #efeef0;
    --surface:      #ffffff;
    --ink:          #0a0a0a;
    --ink-soft:     #1f1f1f;
    --muted:        #6b6b6b;
    --muted-2:      #999999;
    --line:         rgba(10, 10, 10, 0.08);
    --line-2:       rgba(10, 10, 10, 0.05);

    /* Pastel categorical (from screenshots) */
    --pastel-purple: #f0e6ff;
    --pastel-purple-ink: #6b46c1;
    --pastel-blue:   #e0f2fe;
    --pastel-blue-ink: #0284c7;
    --pastel-orange: #ffedd5;
    --pastel-orange-ink: #ea580c;
    --pastel-green:  #ecfccb;
    --pastel-green-ink: #65a30d;
    --pastel-pink:   #fce7e7;
    --pastel-pink-ink: #dc2626;
    --pastel-yellow: #fef3c7;
    --pastel-yellow-ink: #ca8a04;

    /* Hero gradient stops */
    --hero-from:   #d6e9f8;     /* soft blue */
    --hero-via:    #f5f1ea;     /* cream */
    --hero-to:     #fef9e7;     /* soft yellow */

    /* Typography */
    --font-sans:    'Inter', 'IBM Plex Sans Thai', system-ui, sans-serif;
    --font-display: 'Inter', 'IBM Plex Sans Thai', system-ui, sans-serif;
    --font-italic:  'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
    --font-mono:    'JetBrains Mono', monospace;

    /* Layout */
    --container:    1280px;
    --container-wide: 1360px;
    --radius-sm:    8px;
    --radius:       16px;
    --radius-lg:    24px;
    --radius-xl:    32px;
    --radius-pill:  999px;

    /* Motion */
    --ease:        cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.4s var(--ease), color 0.4s var(--ease);
    overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}
.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.05;
    color: var(--ink);
}
h1 {
    font-size: clamp(2.5rem, 6.5vw, 5.5rem);
    letter-spacing: -0.035em;
    line-height: 1;
}
h2 {
    font-size: clamp(2rem, 4.8vw, 3.75rem);
    letter-spacing: -0.025em;
    line-height: 1.05;
}
h3 {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* The signature italic serif — used inline within sans headlines */
.italic {
    font-family: var(--font-italic);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
}

p { color: var(--muted); }

.kicker {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.3s var(--ease);
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-primary {
    background: var(--ink);
    color: var(--bg);
}
.btn-primary:hover {
    background: var(--ink-soft);
    transform: translateY(-1px);
}
.btn-primary svg { transition: transform 0.3s var(--ease); }
.btn-primary:hover svg { transform: translate(2px, -2px); }
.btn-outline {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}
.btn-outline:hover {
    background: var(--bg-pill);
    border-color: var(--ink);
}
.btn-white {
    background: var(--bg);
    color: var(--ink);
}
.btn-white:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.84rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 0.96rem; }
.btn .arrow-icon {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--ink);
    display: grid; place-items: center;
}
.btn-primary .arrow-icon { background: var(--bg); color: var(--ink); }
.btn-white .arrow-icon { background: var(--ink); color: var(--bg); }
.btn-outline .arrow-icon { background: var(--ink); color: var(--bg); }

/* === HEADER (Awake unified pill nav) === */
.site-header .container-wide { max-width: 1100px; }
.site-header {
    position: fixed;
    top: 1rem;
    left: 0; right: 0;
    z-index: 100;
    transition: top 0.35s var(--ease);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.6rem 0.75rem 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.brand-mark {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.brand-logo {
    height: 38px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

/* The center pill containing nav items */
.nav-pill {
    background: var(--bg-pill);
    border-radius: var(--radius-pill);
    padding: 0.4rem 0.5rem;
}
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
}
.nav-menu a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-pill);
    transition: all 0.2s;
}
.nav-menu a:hover {
    background: var(--bg);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: all 0.25s;
    background: transparent;
    color: var(--ink);
}
.theme-toggle:hover { background: var(--bg-pill); }
.theme-toggle .icon-sun { display: none; }

.lang-switcher {
    position: relative;
}
.lang-current {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.2s;
}
.lang-current:hover { background: var(--bg-pill); }
.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 140px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.25s var(--ease);
    list-style: none;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.lang-switcher.open .lang-dropdown,
.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-dropdown a {
    display: block;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
}
.lang-dropdown a:hover { background: var(--bg-pill); }

.btn-signin {
    padding: 0.5rem 1.05rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-signin:hover {
    background: var(--bg-pill);
    border-color: var(--ink);
}
.btn-signup {
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: var(--bg);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s;
}
.btn-signup:hover {
    background: var(--ink-soft);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: transparent;
    place-items: center;
}
.menu-toggle span {
    width: 16px; height: 1.5px;
    background: currentColor;
    display: block;
    transition: all 0.3s;
}
.menu-toggle span + span { margin-top: 4px; }
.menu-toggle.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* === HERO === */
.hero {
    position: relative;
    min-height: 95vh;
    padding: clamp(8rem, 14vh, 11rem) 0 clamp(3rem, 5vh, 5rem);
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 70% at 0% 30%, var(--hero-from) 0%, transparent 55%),
        radial-gradient(ellipse 70% 60% at 100% 50%, var(--hero-to) 0%, transparent 60%),
        var(--hero-via);
}
#about-page .hero {
    min-height: auto;
    padding: clamp(5rem, 9vh, 8rem) 0 clamp(3rem, 5vh, 5rem);
}
.hero-content {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}
.hero h1 {
    margin: 0 auto 2rem;
    max-width: 18ch;
}
.hero h1 .italic {
    font-size: 1.05em;
    line-height: 0.95;
    color: var(--ink);
}
.hero-tagline {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.55;
    color: var(--muted);
    max-width: 60ch;
    margin: 0 auto 2.5rem;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 4rem;
}

/* Avatar group with rating */
.hero-social {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}
.avatar-stack {
    display: flex;
}
.avatar-stack .av {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--bg);
    background: var(--bg-pill);
    margin-left: -10px;
    overflow: hidden;
    display: grid;
    place-items: center;
    font-family: var(--font-italic);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--ink);
}
.avatar-stack .av:first-child { margin-left: 0; }
.avatar-stack .av.c1 { background: var(--pastel-purple); color: var(--pastel-purple-ink); }
.avatar-stack .av.c2 { background: var(--pastel-orange); color: var(--pastel-orange-ink); }
.avatar-stack .av.c3 { background: var(--pastel-green); color: var(--pastel-green-ink); }
.avatar-stack .av.c4 { background: var(--pastel-blue); color: var(--pastel-blue-ink); }

.hero-rating {
    text-align: left;
    font-size: 0.82rem;
}
.hero-rating .stars {
    color: #fbbf24;
    font-size: 1rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}
.hero-rating .stars .empty { color: var(--muted-2); }
.hero-rating .label { color: var(--muted); font-size: 0.82rem; }

/* Trusted-by section below hero */
.hero-trusted {
    margin-top: 3rem;
    padding-top: 2.5rem;
    text-align: center;
}
.hero-trusted-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.hero-trusted-text::before,
.hero-trusted-text::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
.hero-trusted-text span {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Smooth right-to-left marquee */
.trusted-marquee {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.trusted-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 4rem;
    padding: 0.5rem 0;
    animation: trustedScroll 32s linear infinite;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.trusted-marquee:hover .trusted-track { animation-play-state: paused; }
@keyframes trustedScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .trusted-track { animation: none; }
}
.trusted-logo {
    flex-shrink: 0;
    width: auto;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    box-sizing: border-box;
    background: transparent;
    border-radius: 12px;
}
.trusted-logo img {
    display: block;
    max-height: 72px;          /* 80px - 8px padding = ภาพย่อให้พอดีเสมอ */
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}
.trusted-logo .trusted-name {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    white-space: nowrap;
}

/* === ABOUT PAGE — BACK LINK / MISSION / VALUES / VENDORS === */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: var(--muted);
    padding: 0.4rem 0.8rem 0.4rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.back-link:hover {
    color: var(--ink);
    border-color: var(--ink);
    background: var(--bg-soft);
}
.back-link svg { flex-shrink: 0; }
.hero-back { margin-bottom: 2.5rem; }

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.mission-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
}
.mission-card .kicker { margin-bottom: 0.75rem; display: inline-block; }
.mission-card h3 {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    line-height: 1.25;
    margin: 0 0 0.9rem;
}
.mission-card p {
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

.values-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}
.value-letter {
    font-family: var(--font-serif, serif);
    font-style: italic;
    font-size: 3.2rem;
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--ink);
    opacity: 0.85;
}

.vendor-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}
.vendor-pill {
    padding: 0.7rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink);
}

/* === SECTIONS === */
section {
    padding: clamp(4rem, 8vh, 6rem) 0;
}

/* Tinted background zones — adjacent sections with same class flow as one */
.bg-tint-cream {
    background: #f5f1ea;
}
.section-head {
    text-align: center;
    margin-bottom: clamp(3rem, 6vh, 4.5rem);
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}
.section-head .kicker { display: block; margin-bottom: 1.5rem; }
.section-head h2 {
    margin-bottom: 1.25rem;
}
.section-head p {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 56ch;
    margin: 0 auto;
    text-wrap: pretty;
}
#contact .section-head p,
#awards  .section-head p { max-width: none; }
#about-story .section-head { max-width: 1100px; }
#about-story .section-head p { max-width: 85ch; }

/* === INLINE PILLS (Creativity, Innovation, Strategy style) === */
.inline-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: center;
}
.inline-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-italic);
    font-style: italic;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    line-height: 1;
    transition: transform 0.3s var(--ease);
}
.inline-pill:hover { transform: translateY(-3px); }
.inline-pill.purple { background: var(--pastel-purple); color: var(--pastel-purple-ink); }
.inline-pill.blue   { background: var(--pastel-blue);   color: var(--pastel-blue-ink); }
.inline-pill.orange { background: var(--pastel-orange); color: var(--pastel-orange-ink); }
.inline-pill.green  { background: var(--pastel-green);  color: var(--pastel-green-ink); }
.inline-pill.pink   { background: var(--pastel-pink);   color: var(--pastel-pink-ink); }
.inline-pill.yellow { background: var(--pastel-yellow); color: var(--pastel-yellow-ink); }
.inline-pill svg { width: 1em; height: 1em; flex-shrink: 0; }

/* === STATS (3 large columns) === */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 4rem;
}
#about-page .stats { grid-template-columns: repeat(4, 1fr); }
#about-page .stat-num { font-size: clamp(3rem, 6vw, 5.5rem); }
.stat {
    text-align: center;
    padding: 0 2rem;
    border-right: 1px solid var(--line);
    position: relative;
}
.stat:last-child { border-right: none; }
.stat-num {
    font-family: var(--font-sans);
    font-size: clamp(4.5rem, 9vw, 7.5rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}
.stat-num .plus {
    font-size: 0.45em;
    font-weight: 400;
    vertical-align: top;
    margin-right: 0.05em;
    line-height: 1.4;
    display: inline-block;
}
.stat-label {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}

/* === SOLUTIONS (white cards · colored icon · 3×2 grid) === */
.solutions-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.solution-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    cursor: pointer;
}
.solution-card:hover {
    transform: translateY(-3px);
    border-color: var(--ink);
    box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.18);
}
.solution-card .icon {
    width: 52px;
    height: 52px;
    margin-bottom: 1.5rem;
    border-radius: 14px;
    display: grid;
    place-items: center;
    /* color set per variant below */
}
.solution-card .icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.6;
}
.solution-card h3 {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 0.6rem;
    color: var(--ink);
}
.solution-card .summary {
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0 0 auto;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.solution-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 1.25rem;
}
.solution-card .tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-pill);
    background: var(--bg-pill);
    color: var(--muted);
    line-height: 1.3;
    white-space: nowrap;
}

/* Color accents — applied to icon only, not card background */
.solution-card.purple .icon { background: var(--pastel-purple); color: var(--pastel-purple-ink); }
.solution-card.blue   .icon { background: var(--pastel-blue);   color: var(--pastel-blue-ink); }
.solution-card.orange .icon { background: var(--pastel-orange); color: var(--pastel-orange-ink); }
.solution-card.green  .icon { background: var(--pastel-green);  color: var(--pastel-green-ink); }
.solution-card.pink   .icon { background: var(--pastel-pink);   color: var(--pastel-pink-ink); }
.solution-card.yellow .icon { background: var(--pastel-yellow); color: var(--pastel-yellow-ink); }
/* Responsive — handled by global @media at end of file (1024px → 2 cols, 768px → 1 col) */

/* === CTA STRIP (dark banner with two pill buttons) === */
.cta-strip {
    background: var(--ink);
    color: var(--bg);
    border-radius: var(--radius-xl);
    padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(2rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
    margin-top: 4rem;
}
.cta-strip h3 {
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--bg);
}
.cta-strip-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* === PORTFOLIO (large cards with photo + title below) === */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.portfolio-card {
    transition: transform 0.4s var(--ease);
    cursor: pointer;
}
.portfolio-card:hover { transform: translateY(-4px); }
.portfolio-card.is-hidden { display: none; }

.portfolio-load-more {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}
.portfolio-load-more[hidden] { display: none; }
.portfolio-card .image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/11;
    background: var(--bg-soft);
    margin-bottom: 1.5rem;
    border: 1px solid var(--line);
}
.portfolio-card .image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}
.portfolio-card:hover .image-wrap img { transform: scale(1.04); }
.portfolio-card .placeholder {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--pastel-blue), var(--pastel-green));
    font-family: var(--font-italic);
    font-style: italic;
    font-size: clamp(3rem, 5vw, 5rem);
    color: var(--ink);
    opacity: 0.5;
}
.portfolio-card.alt-1 .placeholder { background: linear-gradient(135deg, var(--pastel-purple), var(--pastel-pink)); }
.portfolio-card.alt-2 .placeholder { background: linear-gradient(135deg, var(--pastel-orange), var(--pastel-yellow)); }
.portfolio-card.alt-3 .placeholder { background: linear-gradient(135deg, var(--pastel-green), var(--pastel-blue)); }

.portfolio-card h3 {
    font-size: clamp(1.15rem, 1.5vw, 1.4rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--ink);
}
.portfolio-card .meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.portfolio-card .meta-tag {
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
}

/* === CUSTOMER STORY + FACTS (side by side) === */
.story-facts {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.story-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/11;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    color: white;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
}
.story-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 60%, rgba(80, 80, 80, 0.4), transparent 60%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="0.8" fill="rgba(255,255,255,0.04)"/></svg>');
    background-size: cover, 4px 4px;
    pointer-events: none;
}
.story-card > * { position: relative; z-index: 1; }
.story-card .kicker {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: auto;
}
.story-card h3 {
    font-size: clamp(1.5rem, 2.6vw, 2.4rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: white;
    margin-bottom: 1.5rem;
}
.story-card .author .name {
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    margin-bottom: 0.25rem;
}
.story-card .author .role {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.facts-card {
    background: var(--pastel-yellow);
    color: var(--pastel-yellow-ink);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
}
.facts-card .kicker {
    color: var(--pastel-yellow-ink);
    opacity: 0.7;
    margin-bottom: auto;
}
.facts-card .big-num {
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--pastel-yellow-ink);
    margin-bottom: 1rem;
}
.facts-card .desc {
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--pastel-yellow-ink);
}

/* Big quote section */
.big-quote {
    text-align: center;
    padding: 4rem 0;
}
.big-quote h2 {
    max-width: 22ch;
    margin: 0 auto;
}
.big-quote .author-line {
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--muted);
}
.big-quote .author-name {
    font-weight: 600;
    color: var(--ink);
    margin-right: 0.5rem;
}

/* === TEAM (4 portraits in colored blob shapes) === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.team-member {
    text-align: left;
}
.team-member .photo-wrap {
    position: relative;
    aspect-ratio: 4/5;
    margin-bottom: 1.25rem;
    overflow: hidden;
    background: var(--bg-pill);
}
.team-member.c1 .photo-wrap { background: #5b3df6; clip-path: path('M 50% 0% Q 100% 0% 100% 35% L 100% 50% Q 100% 65% 100% 100% Q 50% 100% 0% 100% Q 0% 65% 0% 50% L 0% 35% Q 0% 0% 50% 0% Z'); }
.team-member.c1 .photo-wrap { background: #5b3df6; border-radius: 50% 50% 60% 40% / 30% 50% 50% 70%; }
.team-member.c2 .photo-wrap { background: #f7b487; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.team-member.c3 .photo-wrap { background: #f5e789; border-radius: 50%; }
.team-member.c4 .photo-wrap { background: #5dd1f0; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; }
.team-member .photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
}
.team-member .photo-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-italic);
    font-style: italic;
    font-size: 4rem;
    color: rgba(255,255,255,0.5);
}
.team-member .name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 0.25rem;
}
.team-member .role {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}
.team-member .socials {
    display: flex;
    gap: 0.65rem;
    color: var(--muted);
}
.team-member .socials a:hover { color: var(--ink); }

/* === CERTIFICATES === */
.cert-tabs-wrap {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}
.cert-tabs {
    display: inline-flex;
    background: var(--bg-pill);
    border-radius: var(--radius-pill);
    padding: 0.35rem;
}
.cert-tab {
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--muted);
    transition: all 0.25s;
}
.cert-tab.active {
    background: var(--ink);
    color: var(--bg);
}
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.cert-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.3s var(--ease);
}
.cert-card:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
}
.cert-badge {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-pill);
    display: grid; place-items: center;
    margin-bottom: 1.25rem;
    color: var(--ink);
}
.cert-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.4rem;
}
.cert-card .issuer {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}
.cert-meta {
    display: flex;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted-2);
}

/* === CERTIFIED EXPERTISE (vendor count cards) === */
.cert-expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.cert-vendor-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cert-vendor-card:hover {
    transform: translateY(-2px);
    border-color: var(--ink);
}
.cert-vendor-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
}
.cert-vendor-icon svg {
    width: 26px;
    height: 26px;
}
.cert-vendor-icon.blue   { background: var(--pastel-blue);   color: var(--pastel-blue-ink); }
.cert-vendor-icon.orange { background: var(--pastel-orange); color: var(--pastel-orange-ink); }
.cert-vendor-icon.green  { background: var(--pastel-green);  color: var(--pastel-green-ink); }
.cert-vendor-icon.pink   { background: var(--pastel-pink);   color: var(--pastel-pink-ink); }
.cert-vendor-icon.purple { background: var(--pastel-purple); color: var(--pastel-purple-ink); }
.cert-vendor-icon.peach  { background: var(--pastel-yellow); color: var(--pastel-yellow-ink); }

/* Per-card "ink" colour token for the engineer-count icon row */
.cert-vendor-card           { --vendor-ink: var(--muted); }
.cert-vendor-card.cv-blue   { --vendor-ink: var(--pastel-blue-ink); }
.cert-vendor-card.cv-orange { --vendor-ink: var(--pastel-orange-ink); }
.cert-vendor-card.cv-green  { --vendor-ink: var(--pastel-green-ink); }
.cert-vendor-card.cv-pink   { --vendor-ink: var(--pastel-pink-ink); }
.cert-vendor-card.cv-purple { --vendor-ink: var(--pastel-purple-ink); }
.cert-vendor-card.cv-peach  { --vendor-ink: var(--pastel-yellow-ink); }

.vendor-cert-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 0.5rem;
    color: var(--vendor-ink);
    opacity: 0.85;
}
.vendor-cert-icons svg {
    width: 18.48px;
    height: 21.12px;
    flex-shrink: 0;
}
.cert-vendor-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.cert-vendor-meta .vendor-name {
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 500;
}
.cert-vendor-meta .vendor-count strong {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--ink);
    margin-right: 0.4rem;
    letter-spacing: -0.02em;
}
.cert-vendor-meta .vendor-count span {
    font-size: 0.85rem;
    color: var(--muted);
}
.cert-total-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    margin-top: 0.5rem;
}
.cert-total-label {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}
.cert-total-num strong {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    margin-right: 0.5rem;
    letter-spacing: -0.02em;
}
.cert-total-num span {
    font-size: 0.95rem;
    color: var(--muted);
}
.cert-total-text {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.55;
}
@media (max-width: 1024px) {
    .cert-expertise-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .cert-expertise-grid { grid-template-columns: 1fr; }
    .cert-total-card { grid-template-columns: 1fr; }
}

/* === PARTNERS (Industry recognition logo grid) === */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}
.partner-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.5rem 1.25rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.partner-card:hover {
    transform: translateY(-4px);
    border-color: var(--ink);
    box-shadow: 0 14px 36px -18px rgba(0,0,0,0.18);
}
.partner-logo {
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: var(--radius);
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--line);
    overflow: hidden;
}
.partner-logo img {
    display: block;
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.partner-fallback {
    font-family: var(--font-display, var(--font-mono));
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ink);
    letter-spacing: -0.01em;
    text-align: center;
}
.partner-meta {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.partner-meta h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--ink);
}
.partner-cat {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

/* === AWARDS (legacy — kept for any other use) === */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.award-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform 0.3s var(--ease);
}
.award-card:hover { transform: translateY(-3px); }
.award-card .icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--bg-pill);
    display: grid; place-items: center;
    margin-bottom: 1.5rem;
}
.award-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.award-card .desc {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.award-card .year {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted-2);
}

/* === CONTACT === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 4rem;
    align-items: start;
}
.contact-info > * + * { margin-top: 2rem; }
.contact-block h4 {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6rem;
}
.contact-block p, .contact-block a {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
}
.contact-block a:hover { color: var(--muted); }

.contact-maps {
    margin-top: 4rem;
}
.contact-map h4 {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.75rem;
}
.map-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    line-height: 0;
}
.map-frame iframe { display: block; }

.contact-form {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 4vw, 2.5rem);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 0.95rem;
    transition: all 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--ink);
}
textarea.form-control { min-height: 120px; resize: vertical; font-family: inherit; }
.form-status { padding: 0.85rem 1rem; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 1rem; display: none; }
.form-status.show { display: block; }
.form-status.success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.form-status.error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* === ABOUT PAGE — APPROACH STEPS === */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.approach-card {
    padding: 2rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.approach-card:hover {
    transform: translateY(-3px);
    border-color: var(--ink);
}
.approach-num {
    font-family: var(--font-italic);
    font-style: italic;
    font-size: 2rem;
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1;
}
.approach-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--ink);
}
.approach-card p {
    font-size: 0.92rem;
    line-height: 1.6;
}
@media (max-width: 900px) {
    .approach-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .approach-grid { grid-template-columns: 1fr; }
}

/* === FOOTER === */
.site-footer {
    margin-top: clamp(4rem, 10vh, 8rem);
    padding-top: 3.5rem;
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.5rem;
    padding-bottom: 2.5rem;
    text-align: center;
}
.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 auto 1.25rem;
    padding-bottom: 1rem;
    max-width: 80%;
    border-bottom: 1px solid var(--line);
}
.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 0.7rem; }
.footer-col a {
    font-size: 0.92rem;
    color: var(--muted);
    transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--ink); }

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 0 1.25rem;
}
.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--bg-pill);
    color: var(--muted);
    transition: all 0.2s var(--ease);
}
.footer-socials a:hover {
    background: var(--ink);
    color: var(--bg);
    transform: translateY(-1px);
}

.footer-copyright {
    text-align: center;
    padding: 1.25rem 0 2rem;
    color: var(--muted);
    font-size: 0.86rem;
}

/* === REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
    .nav-pill { display: none; }
}
@media (max-width: 1024px) {
    .solutions-row { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: 1fr; }
    .stat { border-right: none; border-bottom: 1px solid var(--line); padding: 2rem 0; }
    .stat:last-child { border-bottom: none; }
    #about-page .stats { grid-template-columns: repeat(4, 1fr); }
    #about-page .stat { border-right: 1px solid var(--line); border-bottom: none; padding: 0 1rem; }
    #about-page .stat:last-child { border-right: none; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .story-facts { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .awards-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-maps { margin-top: 2.5rem; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .cta-strip { grid-template-columns: 1fr; text-align: center; }
    .cta-strip-actions { justify-content: center; }
    .mission-grid { grid-template-columns: 1fr; }
    .values-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    section { padding: 3rem 0; }
    .nav-actions .btn-signin { display: none; }
    .menu-toggle { display: grid; }
    .nav-pill { display: contents; }
    #about-page .stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0; }
    #about-page .stat { padding: 1rem 0.75rem; }
    #about-page .stat:nth-child(2n) { border-right: none; }
    #about-page .stat-num { font-size: clamp(2.5rem, 12vw, 4rem); }
    .nav-menu {
        position: fixed;
        inset: 80px 1rem auto 1rem;
        flex-direction: column;
        align-items: stretch;
        background: var(--surface);
        padding: 1rem;
        gap: 0;
        border-radius: var(--radius-lg);
        border: 1px solid var(--line);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s var(--ease);
    }
    .nav-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-menu a { display: block; padding: 0.85rem 1rem; }
    .solutions-row { grid-template-columns: 1fr; }
    .values-row { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .hero-cta { gap: 1rem; flex-direction: column; }
    .nav-wrap { padding: 0.5rem 0.6rem 0.5rem 1rem; }
    .brand-logo { height: 32px; }
    .brand span:not(.brand-mark) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
