/* Home page only (/ and /th/). Split out of clone.css (Dec 2026): these rules match nothing on any
   other page, so the rest of the site no longer downloads them. Loaded right after clone.css by
   src/pages/[...lang]/index.astro; the sections they style are in src/components/home/. */
.container { position: relative; z-index: 1; }
.heading_hero { font-size: clamp(3.4rem, 6.2vw, 6.3rem); line-height: .98; letter-spacing: -.045em; }
.heading_primary { font-size: clamp(2.5rem, 4.4vw, 4.5rem); line-height: 1.04; }
.heading_secondary { line-height: 1.08; }

/* Hairline horizon, laid over the glow's last row so it reads as a light rule everywhere
   rather than tracking the glow's brightness. It is its own element in HomeHero.astro. */
.hero-edge {
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--hairline);
  pointer-events: none;
  z-index: 1;
}
/* --hairline is opaque in light mode, so it cannot compose with the glow beneath: over the
   darkest part of the wash it would read as a lighter rule. Translucent ink instead. */
[data-mode='light'] .hero-edge { background: color-mix(in srgb, var(--text-primary) 10%, transparent); }

.scribble1 { opacity: .2; filter: invert(1) sepia(.08); }
[data-mode='light'] .scribble1 { filter: none; opacity: .12; }
/* Tertiary affordance on the clickable services cards: quiet enough not to compete with the
   page's yellow primary CTAs, present enough to read as an invitation. */
.card-cta { margin-top: 22px; display: inline-flex; align-items: center; gap: 9px; color: var(--accent-blue-link); font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.card-cta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }

/* Licensing band: the second offering category, linking out to the reseller pages. */
#section-licensing { background: var(--canvas-soft) !important; }
/* Service chips — solid, theme-aware offering pills. Fill = --text-primary, ink = --canvas, so they
   read as black-on-light in light mode and a light pill in dark mode (good contrast either way). */
.service-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.service-chip { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: var(--r-pill); background: var(--text-primary); color: var(--canvas); font-family: var(--font-body); font-size: 12.5px; font-weight: 600; line-height: 1.1; text-decoration: none; transition: transform .18s ease, background .18s ease; }
/* Lock the fill + ink on hover so the label never loses contrast; just lift the chip. */
.service-chip:hover { transform: translateY(-2px); background: var(--text-primary); color: var(--canvas); }
/* A chip that goes to another site (Thinking Machines) opens a new tab: the ↗ shows it. */
.service-chip[target='_blank']::after { content: '↗'; margin-left: 3px; font-size: 11px; font-weight: 400; opacity: .7; }
/* Hero: sit just under the headline, above the subheading. */
.service-chips.hero-chips { margin: 18px 0 6px; }
.service-chips.section-chips { justify-content: center; margin: 10px auto 48px; }
/* Contact band is inverted (dark in light mode, light in dark mode). Style chips against it with the
   band's own ink/surface colours so they read in both themes. */
.service-chips.cta-chips { margin: 0 0 24px; }
.service-chips.cta-chips .service-chip,
.service-chips.cta-chips .service-chip:hover { background: var(--inverted-text); color: var(--surface-inverted); }
@media (prefers-reduced-motion: reduce) { .service-chip { transition: none; } .service-chip:hover { transform: none; } }

/* Forward Deployed Engineering — full-width card under the four service cards (HomeServices.astro:
   fdeCard). Copy left, the four steps right; stacks under 900px. */
.fde-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; margin-top: 16px; padding: 36px; text-decoration: none; color: inherit; border-color: var(--hairline-strong); }
.fde-card-icon { display: inline-flex; align-items: center; justify-content: center; }
.fde-card-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--accent-voltage-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fde-badge { padding: 5px 10px; border-radius: var(--r-pill); background: var(--accent-ember-link); color: #17150f; font-family: var(--font-label); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fde-card .card-cta { margin-top: 6px; }
.fde-card:hover .card-cta svg, .fde-card:focus-visible .card-cta svg { transform: translateX(4px); }
@media (max-width: 900px) { .fde-card { grid-template-columns: minmax(0, 1fr); padding: 26px; } }

.licensing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.licensing-card { display: block; }
.licensing-card .card_body_small { padding: 32px !important; display: flex; flex-direction: column; height: 100%; }
.licensing-card-icon { display: block; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 12px; }
.licensing-card .heading_small { margin: 0 0 10px; }
.licensing-card .subheading { margin: 0; }
/* Who already bought it — the proof sits between the pitch and the button. */
.licensing-customers { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.licensing-customers-label { margin: 0 0 12px; color: var(--text-muted); font-family: var(--font-label); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.licensing-customers-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 92px)); gap: 6px 14px; align-items: center; }
.licensing-customers-list li { display: flex; align-items: center; justify-content: center; }
/* Same grey treatment as the "Trusted by" grid (.logo-section-partners), inverted in light mode. */
/* The files are 300×300 squares with the mark in the middle third; a 3:2 crop drops the empty
   top and bottom so the row sits tight under its label. */
.licensing-customer-logo { border-radius: 0; display: block; width: 100%; max-width: 92px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(1) opacity(.72); }
[data-mode='light'] .licensing-customer-logo { filter: grayscale(1) invert(1) opacity(.72); }
@media (max-width: 480px) { .licensing-customers-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 10px; } }
/* margin-top:auto pins the links to the bottom, so both cards' buttons line up even though the
   Enterprise card lists four customers and Edu one. */
.licensing-card-actions { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.licensing-card-actions .card-cta { margin-top: 0; text-decoration: none; }
.licensing-card-actions .card-cta:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Outbound: the arrow leaves the card. Internal: it moves along. */
.licensing-quote:hover svg, .licensing-quote:focus-visible svg { transform: translate(3px, -3px); }
.licensing-story:hover svg, .licensing-story:focus-visible svg { transform: translateX(4px); }
.licensing-grid > .licensing-card { height: 100%; }
@media (max-width: 800px) {
  .licensing-grid { grid-template-columns: 1fr; } }
/* Common-features block: the four pillars shared by both Enterprise and Edu, above the two
   product cards. */
.licensing-features { margin: 40px 0 28px; }
.licensing-features-eyebrow { margin: 0 0 18px; text-align: left; color: var(--accent-blue-link); font-family: var(--font-label); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.licensing-features-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
/* No container: the pillars sit directly on the section, each led by a square cover image. */
.licensing-feature { background: none; border: 0; padding: 0; }
.licensing-feature-image { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 16px; background: var(--surface-elevated); }
.licensing-feature-title { margin: 0 0 12px; font-family: var(--font-display); font-size: 1.02rem; line-height: 1.2; letter-spacing: -.01em; color: var(--text-primary); }
.licensing-feature-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.licensing-feature-list li { position: relative; padding-left: 24px; color: var(--text-body); font-size: 13.5px; line-height: 1.5; }
.licensing-feature-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 15px; height: 15px; background: var(--accent-blue-link); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 10 4 4 8-9' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 10 4 4 8-9' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 900px) { .licensing-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .licensing-features-grid { grid-template-columns: 1fr; } }
.output-dashboard, .skill-chat { margin-top: 26px; overflow: hidden; border: 1px solid var(--hairline-strong); border-radius: var(--r-lg); background: var(--canvas-soft); color: var(--text-primary); box-shadow: inset 0 1px 0 var(--glass-highlight); }
.mock-window-bar { height: 38px; padding: 0 13px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--hairline); color: var(--text-muted); }
.mock-window-bar > span { width: 6px; height: 6px; border-radius: 50%; background: var(--hairline-strong); }
.mock-window-bar strong { margin-left: 5px; font-family: var(--font-label); font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.mock-window-bar em { margin-left: auto; color: var(--text-muted); font-size: 8px; font-style: normal; }
.sales-kpis { display: grid; grid-template-columns: 1.5fr 1fr 1fr; border-bottom: 1px solid var(--hairline); }
.sales-kpis > div { min-height: 72px; padding: 13px; border-right: 1px solid var(--hairline); }
.sales-kpis > div:last-child { border-right: 0; }
.sales-kpis small { display: block; margin-bottom: 5px; color: var(--text-muted); font-size: 9px; }
.sales-kpis strong { font-family: var(--font-display); font-size: 20px; }
.sales-trend { padding: 12px 13px 10px; border-bottom: 1px solid var(--hairline); }
.sales-trend-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sales-trend-label strong { font-size: 10px; }
.sales-trend-label small { color: var(--text-muted); font-size: 8px; }
.sales-bars { height: 48px; margin-top: 9px; display: flex; align-items: flex-end; gap: 7px; }
.sales-bars i { height: var(--bar); flex: 1; border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--accent-blue) 72%, var(--surface-elevated)); }
.sales-bars i:last-child { background: var(--accent-blue); }
.sales-actions { padding: 7px; }
.sales-actions > div { min-height: 34px; padding: 5px 7px; display: grid; grid-template-columns: 26px 1fr auto; gap: 7px; align-items: center; border-bottom: 1px solid var(--hairline); }
.sales-actions > div:last-child { border-bottom: 0; }
.output-icon { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid var(--hairline-strong); border-radius: var(--r-sm); color: var(--accent-blue-link); font-family: var(--font-label); font-size: 8px; }
.sales-actions strong { font-size: 10px; font-weight: 600; }
.sales-actions em { color: var(--accent-blue-link); font-size: 8px; font-style: normal; }
.skill-chat { margin-bottom: 24px; }
.skill-chat-body { padding: 15px; }
.skill-message { display: grid; grid-template-columns: 25px 1fr; gap: 9px; align-items: start; }
.skill-message p { margin: 2px 0 17px; color: var(--text-body) !important; font-size: 11px; line-height: 1.5; }
.skill-mark { width: 24px; height: 24px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--accent-blue); color: var(--accent-blue-on); font-size: 12px; }
.skill-composer { min-height: 66px; padding: 12px 42px 12px 13px; position: relative; display: flex; align-items: flex-start; border: 1px solid var(--hairline-strong); border-radius: var(--r-md); background: var(--surface); }
.skill-prompt { color: var(--text-primary); font-family: var(--font-body); font-size: 11px; line-height: 1.45; }
.typing-caret { width: 1px; height: 15px; margin: 1px 0 0 2px; background: var(--text-primary); animation: typing-blink .8s step-end infinite; }
.skill-composer button { width: 27px; height: 27px; position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; border: 0; border-radius: var(--r-pill); background: var(--accent-ember); color: var(--accent-ember-ink); }
.skill-composer button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hero-collage-col {
  display: flex;
  flex-direction: column;
  gap: var(--collage-gap);
  min-width: 0;
}
/* Source logos are white, so they only need inverting when the band is light. */
.logo-section-partners { filter: grayscale(1) opacity(.62); transition: filter .2s ease; }
/* Partner badges with a light-mode twin (HomeDifferentiators.astro / HomeHero.astro). Dark is the default
   so a page that never sets data-mode still shows exactly one. */
.badge-on-light { display: none !important; }
[data-mode='light'] .badge-on-dark { display: none !important; }
[data-mode='light'] .badge-on-light { display: block !important; }
[data-mode='light'] .logo-section-partners { filter: grayscale(1) invert(1) opacity(.68); }
.text-button { color: var(--accent-blue-link) !important; }
#section-partners h2.heading_primary { color: var(--text-primary) !important; }
#section-partners .subheading { color: var(--text-body) !important; }
.impact-strip {
  margin-top: clamp(48px, 5vw, 78px);
  padding-top: clamp(38px, 3.6vw, 58px);
  border-top: 1px solid var(--hairline);
}
#section-partners .impact-strip_label {
  margin: 0 0 clamp(22px, 2.2vw, 34px);
  color: var(--text-muted) !important;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .11em;
  text-align: center;
  text-transform: uppercase;
}
.counter-number { color: var(--accent-blue-link) !important; }
.scribble2 { filter: none; opacity: .13; }
[data-mode='light'] .scribble2 { filter: invert(1); }
@media (min-width: 992px) {
  html:lang(th) .heading_hero { font-size: 3.4rem; } }
html:lang(th) .mock-window-bar strong { letter-spacing: 0; text-transform: none; }
html:lang(th) .skill-message p, html:lang(th) .skill-prompt { line-height: 1.7; }
@media (max-width: 991px) {
  .nav_mobile-menu-button { cursor: pointer; }
  .heading_hero { font-size: clamp(2.8rem, 9vw, 4.8rem); } }
@media (max-width: 800px) {
  #section-differentiators [data-wf='bento-full'] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  #section-differentiators [data-wf='bento-full'] > .grid_1-col { display: contents !important; }
  #section-differentiators .grid-item-manual { min-width: 0; } }
@media (max-width: 600px) {
  #section-differentiators [data-wf='bento-full'] { grid-template-columns: minmax(0, 1fr) !important; } }
@media (min-width: 601px) and (max-width: 800px) {
  #section-differentiators .card_body_small { padding: 16px !important; }
  #section-differentiators .heading_secondary { font-size: clamp(1.1rem, 4.5vw, 1.45rem); line-height: 1.2; letter-spacing: -.02em; }
  #section-differentiators .subheading { font-size: 12px; line-height: 1.55; }
  #section-differentiators .text-button { font-size: 11px; }
  #section-differentiators .output-dashboard, #section-differentiators .skill-chat { margin-top: 18px; }
  #section-differentiators .mock-window-bar em { display: none; }
  #section-differentiators .sales-kpis { grid-template-columns: 1fr 1fr; }
  #section-differentiators .sales-kpis > div { min-height: 52px; padding: 8px; }
  #section-differentiators .sales-kpis > div:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--hairline); }
  #section-differentiators .sales-kpis > div:nth-child(2) { border-right: 1px solid var(--hairline); }
  #section-differentiators .sales-kpis small { font-size: 7.5px; line-height: 1.25; }
  #section-differentiators .sales-kpis strong { font-size: 15px; }
  #section-differentiators .sales-trend { padding: 8px; }
  #section-differentiators .sales-trend-label strong { font-size: 8px; }
  #section-differentiators .sales-trend-label small { display: none; }
  #section-differentiators .sales-bars { height: 30px; gap: 4px; }
  #section-differentiators .sales-actions > div { grid-template-columns: 22px minmax(0, 1fr); }
  #section-differentiators .sales-actions > div:nth-child(n+2) { display: none; }
  #section-differentiators .sales-actions em { display: none; }
  #section-differentiators .sales-actions strong { font-size: 8.5px; }
  #section-differentiators .skill-chat-body { padding: 10px; }
  #section-differentiators .skill-message { grid-template-columns: 22px 1fr; gap: 7px; }
  #section-differentiators .skill-mark { width: 22px; height: 22px; }
  #section-differentiators .skill-message p, #section-differentiators .skill-prompt { font-size: 9px; }
  #section-differentiators .skill-composer { min-height: 72px; padding: 10px 34px 10px 10px; }
  #section-differentiators .skill-composer button { width: 24px; height: 24px; right: 6px; bottom: 6px; } }
@media (min-width: 801px) and (max-width: 991px) {
  #section-differentiators [data-wf='bento-full'] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
  #section-differentiators [data-wf='bento-full'] > .grid_1-col { display: contents !important; } }
@media (max-width: 767px) {

  /* The three impact stats stay on one row across every mobile width. */
  section:has(#section-impact) .grid_3-col {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  section:has(#section-impact) .card_body {
    padding: clamp(16px, 3.4vw, 26px) clamp(7px, 2vw, 16px) !important;
  }
  section:has(#section-impact) .counter-number {
    font-size: clamp(1rem, 4.4vw, 2rem);
    letter-spacing: -.03em;
    white-space: nowrap;
  }
  section:has(#section-impact) .paragraph_large { font-size: clamp(10px, 2vw, 15px); line-height: 1.35; } }
@media (max-width: 560px) {

  section:has(#section-impact) .grid_3-col { gap: 8px !important; }
  section:has(#section-impact) .card_body { padding: 16px 7px !important; }
  section:has(#section-impact) .counter-number {
    font-size: clamp(1rem, 5.4vw, 1.3rem);
    letter-spacing: -.04em;
  }
  section:has(#section-impact) .paragraph_large { font-size: 10px; }
  .heading_hero { font-size: 2.65rem; line-height: 1.04; } }
@media (prefers-reduced-motion: reduce) {
  .typing-caret { animation: none; opacity: 1; } }

/* --- Phone hero: one auto-scrolling photo strip instead of four stacked photos ---------- */
.hero-strip { display: none; }
@media (max-width: 767px) {
  .hero-strip {
    display: block;
    margin: 32px calc(-1 * var(--page-gutter)) 0;
    width: calc(100% + 2 * var(--page-gutter));
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  /* Two identical sets, so moving by exactly half the track loops without a seam. Each photo
     carries its own right margin (no flex gap) for the same reason: -50% must land on a set edge. */
  .hero-strip-track { display: flex; width: max-content; animation: hero-strip 42s linear infinite; }
  /* !important: Webflow's header image rules (width:100%, height:auto) out-rank this otherwise. */
  .hero-strip img {
    flex: none; height: 200px !important; width: auto !important; max-width: none !important;
    margin-right: 12px; border-radius: var(--r-lg); object-fit: cover;
  }
  .hero-strip.is-paused .hero-strip-track { animation-play-state: paused; } }
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .hero-strip { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: auto; }
  .hero-strip::-webkit-scrollbar { display: none; }
  .hero-strip-track { animation: none; padding-inline: var(--page-gutter); }
  .hero-strip img { scroll-snap-align: start; } }
@media (max-width: 767px) {
  .service-chips.hero-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-left: calc(-1 * var(--page-gutter));
    margin-right: calc(-1 * var(--page-gutter));
    padding: 2px 48px 2px var(--page-gutter);   /* 48px: the last chip can scroll clear of the fade */
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  }
  .service-chips.hero-chips::-webkit-scrollbar { display: none; }
  .service-chips.hero-chips .service-chip { flex: none; scroll-snap-align: start; } }
@media (max-width: 991px), (hover: none) {
  .service-chip { min-height: 40px; padding: 9px 16px; } }
@media (max-width: 600px) {
  /* Sales copilot: three numbers in one row and the chart; the task list goes. */
  #section-differentiators .sales-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  #section-differentiators .sales-kpis > div:first-child { grid-column: auto !important; border-bottom: 0 !important; border-right: 1px solid var(--hairline) !important; }
  #section-differentiators .sales-kpis > div { min-height: 0 !important; padding: 10px !important; }
  #section-differentiators .sales-kpis small { font-size: 10px !important; }
  #section-differentiators .sales-kpis strong { font-size: 18px !important; }
  #section-differentiators .sales-actions { display: none !important; }
  /* Reusable assistant: just the prompt being typed. */
  #section-differentiators .skill-message { display: none !important; }
  #section-differentiators .skill-composer { min-height: 52px !important; }
  #section-differentiators .output-dashboard, #section-differentiators .skill-chat { margin-top: 14px; } }
@media (max-width: 991px), (hover: none) {
  #section-differentiators .text-button,
  .licensing-card-actions .card-cta { padding-block: 11px; margin-block: -11px; }
  .licensing-card-actions { row-gap: 18px; } }

/* =====================================================================================
   Mock UIs fill their card (Dec 2026). Cards in a row stretch to the tallest one; the mock
   used to stay fixed-size and the leftover height became an empty gap above or below it.
   Now the mock takes the leftover: the sales chart grows, the assistant's window grows with
   its input pinned to the bottom like a real chat.
   ===================================================================================== */
#working-outputs-card .card_body_small,
#reusable-toolkits-card .card_body_small { display: flex; flex-direction: column; }
.output-dashboard, .skill-chat { flex: 1 0 auto; display: flex; flex-direction: column; }

.output-dashboard .sales-trend { flex: 1 0 auto; display: flex; flex-direction: column; }
.output-dashboard .sales-bars { flex: 1 0 48px; height: auto; max-height: 220px; }

.skill-chat-body { flex: 1 0 auto; display: flex; flex-direction: column; gap: 14px; }
.skill-chat-body .skill-message { margin: 0; }
.skill-chat-body .skill-composer { margin-top: auto; }   /* input at the bottom of the window */

.skill-library { display: flex; flex-direction: column; gap: 8px; }
.skill-library small { color: var(--text-muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.skill-library ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.skill-library li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--hairline); border-radius: var(--r-sm); background: var(--surface); }
.skill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-blue); }
.skill-library strong { overflow: hidden; color: var(--text-primary); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.skill-library em { color: var(--text-muted); font-size: 11px; font-style: normal; }
@media (min-width: 601px) and (max-width: 991px) {
  #section-differentiators .sales-actions > div:nth-child(n+2) { display: grid !important; }
  #section-differentiators .skill-message p { font-size: 11px; } }
@media (max-width: 600px) {
  .skill-library { display: none; }
  .output-dashboard .sales-bars { flex-basis: 40px; max-height: 60px; } }
@media (min-width: 601px) and (max-width: 800px) {
  #section-differentiators .skill-library small { font-size: 9px; }
  #section-differentiators .skill-library li { padding: 6px 9px; gap: 8px; }
  #section-differentiators .skill-library strong { font-size: 10px; }
  #section-differentiators .skill-library em { font-size: 9px; } }

/* =====================================================================================
   Services grid (HomeServices.astro). One journey, same order everywhere.
   Desktop: photo | 2×2 services, FDE wide below. Tablet: photo banner, 2×2, FDE.
   Phone: compact rows (icon beside text), FDE, photo last.
   ===================================================================================== */
.svc-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.svc-photo { min-width: 0; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc-fde { grid-column: 1 / -1; margin-top: 0; }

.svc-card, .svc-fde {
  display: flex; flex-direction: column; gap: 18px;
  padding: 28px; text-decoration: none; color: inherit;
  transition: border-color .18s ease, transform .18s ease;
}
.svc-card:hover, .svc-fde:hover { border-color: var(--hairline-strong); transform: translateY(-2px); }
.svc-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; margin: 0; }
.svc-icon img, .svc-icon svg { width: 30px; height: 30px; }
.svc-icon svg { fill: none; stroke: var(--accent-voltage-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc-text { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.svc-step { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-blue-link); font-family: var(--font-label); font-size: var(--fs-label, 12px); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.svc-step-num { color: var(--text-muted); }
.svc-step .fde-badge { letter-spacing: .08em; }
.svc-title { margin: 0; font-family: var(--font-display); font-size: var(--fs-h4, 1.25rem); font-weight: var(--fw-heading, 600); line-height: 1.25; letter-spacing: -.01em; color: var(--text-primary); }
.svc-body { color: var(--text-body); font-size: var(--fs-body, 1rem); line-height: 1.6; max-width: 34rem; }
.svc-text .card-cta { margin-top: auto; padding-top: 8px; }
.svc-card:hover .card-cta svg, .svc-fde:hover .card-cta svg { transform: translateX(4px); }

/* FDE: copy left, the steps and link right. */
.svc-fde { flex-direction: row; align-items: center; gap: 28px; padding: 32px; border-color: var(--hairline-strong); }
.svc-fde .svc-icon { align-self: flex-start; }
.svc-fde .svc-title { font-size: var(--fs-h3, 1.6rem); }
.svc-fde-side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; flex: none; width: min(38%, 380px); }
.svc-fde-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-primary); font-size: var(--fs-small, 14px); font-weight: 600; }
.svc-fde-steps span { padding: 7px 12px; border: 1px solid var(--hairline); border-radius: var(--r-pill); }
.svc-fde-steps i { color: var(--text-muted); font-style: normal; }
.svc-fde-side .card-cta { margin-top: 0; }
@media (max-width: 991px) {
  .svc-layout { grid-template-columns: minmax(0, 1fr); }
  .svc-fde { flex-direction: column; align-items: stretch; }
  .svc-fde-side { width: auto; } }
@media (max-width: 600px) {
  .svc-layout { gap: 12px; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .svc-photo { order: 3; }
  .svc-card, .svc-fde { flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px; }
  .svc-icon { width: 44px; height: 44px; min-width: 44px; border-radius: 10px; }
  .svc-icon img, .svc-icon svg { width: 22px; height: 22px; }
  .svc-text { gap: 6px; }
  .svc-title { font-size: 1.125rem; }
  .svc-body { font-size: .9375rem; line-height: 1.5; }
  .svc-text .card-cta { padding-top: 4px; }
  .svc-fde .svc-title { font-size: 1.25rem; }
  .svc-fde-side { display: none; }
  .svc-fde .svc-text::after { content: 'Embed → Build → Ship → Hand over'; color: var(--text-muted); font-size: 13px; font-weight: 600; } }
@media (min-width: 992px) { .svc-photo .image_cover { object-position: right center; } }

/* Client photos under the "Trusted by" logos (HomePartners.astro).
   Desktop/tablet: three across. Phone: one row you swipe, the next photo peeking in. */
.client-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 56px 0 8px; }
.client-photo { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.client-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: var(--r-lg); }
.client-photo figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.client-photo figcaption strong { color: var(--text-primary); font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.client-photo figcaption span { color: var(--text-muted); font-size: .875rem; }
@media (max-width: 767px) {
  .client-photos {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 40px calc(-1 * var(--page-gutter)) 0; padding: 0 var(--page-gutter) 4px; gap: 12px;
  }
  .client-photos::-webkit-scrollbar { display: none; }
  .client-photo { flex: 0 0 78%; scroll-snap-align: start; } }

/* King Power story link on the Enterprise card: a small photo before the text. */
.licensing-story.has-photo { gap: 12px; }
.licensing-story-photo { width: 56px; height: 42px; object-fit: cover; border-radius: 8px; flex: none; }
@media (max-width: 767px) {
  .client-photos { scroll-padding-inline: var(--page-gutter); }
  .service-chips.hero-chips { scroll-padding-inline: var(--page-gutter); } }

/* "Trusted by": heading centred on top, then two rows of logos that scroll forever
   (HomePartners.astro). Each logo box is --w × --k px wide (--w from
   balanceTrustedLogos, so wordmarks and seals look equally heavy) plus a --gap. A row is one copy of
   its logos twice; sliding it by -50% (one copy) loops with no seam. The build writes each row's
   --sum (of --w) and --n, so the loop time below gives the same --speed (px/s) on every screen. */
.w-layout-grid.grid_2-col.section-partners { grid-template-columns: minmax(0, 1fr) !important; row-gap: 48px !important; }
.logo-marquee {
  --k: 1.1; --gap: 56; --speed: 70; --cell: 64px;
  display: grid; row-gap: 28px; min-width: 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.logo-marquee-row { overflow: hidden; }
.logo-marquee-track {
  display: flex; width: max-content;
  animation: logo-marquee calc((var(--sum) * var(--k) + var(--n) * var(--gap)) / var(--speed) * 1s) linear infinite;
}
.logo-marquee-row.is-reverse .logo-marquee-track { animation-direction: reverse; }
.logo-marquee-set { display: flex; align-items: center; flex: none; }
.logo-marquee .logo-section-partners {
  width: calc(var(--w, 70) * var(--k) * 1px); max-width: none;
  height: auto; max-height: var(--cell); object-fit: contain; margin: 0;
  border-radius: 0;   /* Webflow rounds every <img>; on a trimmed logo that cut off the corners */
}
@media (max-width: 767px) {
  .w-layout-grid.grid_2-col.section-partners { row-gap: 36px !important; }
  .logo-marquee { --k: 1; --gap: 44; --speed: 55; --cell: 58px; row-gap: 22px; } }
@media (max-width: 479px) {
  .logo-marquee { --k: .9; --gap: 36; --speed: 45; --cell: 52px; row-gap: 18px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); } }
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
  .logo-marquee-row { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .logo-marquee-row::-webkit-scrollbar { display: none; }
  .logo-marquee { -webkit-mask-image: linear-gradient(to right, #000 90%, transparent); mask-image: linear-gradient(to right, #000 90%, transparent); } }

/* --- "Insights from the field" (home; build-articles.mjs: homeInsightsSection) --------------------
   Desktop: the newest article large on the left, the next two as image-left cards stacked beside it.
   Under 992px: the three become a row you swipe sideways, the next card peeking in at the edge.
   A <div>, not a <section>: a new <section> would flip `.section:nth-of-type(even)` for the CTA. */
.home-insights { background: var(--canvas); padding: 96px 0; }
.home-insights-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: 40px; }
.home-insights-head .heading_primary { margin: 0; }
.home-insights-head .subheading { margin: 14px 0 0; max-width: 560px; }
.home-insights-all {
  display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px;
  color: var(--text-primary); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.home-insights-all svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.home-insights-all:hover svg { transform: translateX(3px); }
.home-insights-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 24px; }
.hi-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid var(--hairline); border-radius: var(--r-xl); background: var(--surface);
  color: inherit; text-decoration: none; transition: transform .18s ease, border-color .18s ease;
}
.hi-card:hover { transform: translateY(-3px); border-color: var(--hairline-strong); }
.hi-card.is-lead { grid-row: 1 / span 2; }
.hi-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--canvas-soft); flex: none; }
.hi-media img { display: block; width: 100%; height: 100% !important; object-fit: cover; border-radius: 0; }
.hi-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; min-width: 0; }
.hi-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.4; }
.hi-meta span + span::before { content: "·"; margin-right: 12px; }
.hi-card h3 { margin: 0; color: var(--text-primary); font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.hi-card.is-lead h3 { font-size: 28px; line-height: 1.18; }
.hi-excerpt {
  margin: 0; color: var(--text-body); font-size: 15px; line-height: 1.55;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
@media (min-width: 992px) and (max-width: 1199px) { .home-insights { padding: 84px 0; } }
@media (min-width: 992px) {
  .hi-card:not(.is-lead) { flex-direction: row; }
  .hi-card:not(.is-lead) .hi-media { aspect-ratio: auto; width: 40%; }
  .hi-card:not(.is-lead) .hi-body { flex: 1; justify-content: center; }
  .hi-card:not(.is-lead) .hi-excerpt { -webkit-line-clamp: 2; font-size: 14px; } }
@media (max-width: 991px) {
  .home-insights { padding: 72px 0; }
  .home-insights-grid {
    grid-template-columns: none; grid-template-rows: none; grid-auto-flow: column; grid-auto-columns: 46%;
    gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: -16px; padding: 0 16px 6px; scroll-padding-inline: 16px; scrollbar-width: none;
  }
  .home-insights-grid::-webkit-scrollbar { display: none; }
  .hi-card { scroll-snap-align: start; }
  .hi-card.is-lead { grid-row: auto; }
  .hi-card.is-lead h3 { font-size: 20px; line-height: 1.25; }
  .hi-card:hover { transform: none; } }
@media (max-width: 767px) {
  .home-insights { padding: 64px 0; }
  .home-insights-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 28px; }
  .home-insights-grid { grid-auto-columns: 84%; }
  .hi-body { padding: 18px 18px 20px; } }

/* Thai hero headline: phrases stay whole; lines break only between them (HomeHero.astro). */
.th-phrase { white-space: nowrap; }
.pinto-card.is-band { margin-top: 24px; padding: 18px 24px; transition: border-color .18s ease; }
.pinto-card.is-band:hover { border-color: var(--hairline-strong); }
.pinto-card.is-band .pinto-icon { width: 48px; height: 48px; border-radius: 14px; }  /* beats img[width][height] */
.pinto-card.is-band .pinto-icon img { height: 28px; }
html body .pinto-card.is-band .pinto-text .pinto-title { font-size: 18px; letter-spacing: -.01em; }
@media (max-width: 767px) {
  .pinto-card.is-band { padding: 18px 20px; gap: 14px; } }