/* =========================================================
   SPS Landing — design tokens from docs/DESIGN_SYSTEM.md
   Poppins only, weight 400 across headings,
   plum-deep palette, container 1240px, shadow on hover only.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand — plum scale */
  --plum-50:   #F6F4FA;
  --plum-100:  #ECE7F4;
  --plum-300:  #B5A4D4;
  --plum-500:  #5B4B8A;
  --plum-700:  #2F2848;
  --plum-deep: #1A1430;

  /* Accent */
  --accent:       #7C6BFF;
  --accent-hover: #6B5BFF;
  --accent-soft:  #EFEBFF;

  /* Neutral */
  --white:  #FFFFFF;
  --cream:  #FAF8F4;
  --ink-100: #E8E5EF;
  --ink-300: #B2AEBF;
  --ink-500: #6B6577;
  --ink-700: #2F2A40;

  /* Semantic */
  --success: #4ADE80;

  /* Easing — single value across whole site */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);

  /* Radius */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   24px;
  --r-pill: 999px;

  /* Shadows — sparingly used */
  --shadow-card-hover:    0 16px 32px -16px rgba(26, 20, 48, .12);
  --shadow-product-hover: 0 20px 40px -16px rgba(26, 20, 48, .15);
  --shadow-megamenu:      0 24px 48px -16px rgba(26, 20, 48, .12);
  --shadow-floating:      0 12px 32px -8px  rgba(26, 20, 48, .20);

  /* Layout */
  --container: 1240px;
  --container-wide: 1400px;
}

/* ---------- Base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', 'Pretendard', 'Poppins Placeholder', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -.01em;
  color: var(--plum-deep);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1,h2,h3,h4,h5 {
  margin: 0;
  font-family: inherit;
  font-weight: 400;           /* All headings 400 — Greenleaf understatement */
  letter-spacing: -.04em;
  line-height: 1.1;
  color: var(--plum-deep);
}
p { margin: 0; }
address { font-style: normal; }

/* ---------- Type scale ---------- */
.display-xl { font-size: clamp(40px, 5.8vw, 64px); line-height: 1.22; letter-spacing: -.04em; font-weight: 400; }
.display-lg { font-size: clamp(34px, 4.4vw, 48px); line-height: 1.28; letter-spacing: -.04em; font-weight: 400; }
.display-md { font-size: 28px; line-height: 1.15; letter-spacing: -.04em; font-weight: 400; }
.display-sm { font-size: 22px; line-height: 1.2;  letter-spacing: -.04em; font-weight: 400; }
/* Subtitle/lead sits under section title at ~1/4 the title size — matches the
   reference proportion. Hero gets its own larger lead (.hero__lead). */
.lead       { font-size: 15px; line-height: 1.6;  letter-spacing: -.015em; color: var(--ink-500); max-width: 56ch; }
.body-md    { font-size: 16px; line-height: 1.55; letter-spacing: -.01em; }

/* Korean-aware line breaking. Korean text breaks mid-word by default (CJK rule),
   which reads awkwardly — keep-all breaks only at spaces (어절 boundaries). balance/
   pretty give even multi-line wrapping for EN + KO, so titles/subtitles don't need a
   hardcoded <br> (which would land at the wrong spot in the other language). */
.display-lg, .display-md, .display-sm, h1, h2, h3, .hist__title { word-break: keep-all; text-wrap: balance; }
.display-xl, .hero__title { word-break: keep-all; }
.lead, .hero__lead, .hist__sub { word-break: keep-all; text-wrap: pretty; white-space: pre-line; }
.body-sm    { font-size: 14px; line-height: 1.55; letter-spacing: -.01em; }
.micro      { font-size: 11px; line-height: 1.4;  letter-spacing: .04em; text-transform: uppercase; font-weight: 400; color: var(--ink-500); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px;
  background: var(--cream);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-pill);
  font-size: 13px; letter-spacing: -.013em; color: var(--plum-deep);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.eyebrow--accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-hover); }
.eyebrow--accent::before { background: var(--accent); }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: var(--container-wide); }
@media (min-width: 768px) { .container { padding: 0 32px; } }
/* Section spacing — consistent across all sections.
   Mobile 56px / Desktop 96px (tightened from previous 64/120). */
.section { padding: 56px 0; }
@media (min-width: 961px) { .section { padding: 96px 0; } }
.section--tight { padding: 32px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 14px; }
.section-head .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border-radius: var(--r-pill); border: 1px solid transparent;
  font-family: inherit; font-weight: 400; font-size: 14px; letter-spacing: -.014em;
  transition: background-color .12s var(--ease), border-color .12s var(--ease), color .12s var(--ease), transform .15s var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn--primary { background: var(--plum-deep); color: var(--white); }
.btn--primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn--secondary { background: transparent; border-color: var(--ink-100); color: var(--plum-deep); }
.btn--secondary:hover { background: var(--cream); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--on-dark { background: var(--white); color: var(--plum-deep); }
.btn--on-dark:hover { background: var(--accent); color: var(--white); }
.btn--ghost-on-dark { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.btn--ghost-on-dark:hover { background: var(--white); color: var(--plum-deep); box-shadow: none; }
.btn--nav { padding: 11px 22px; font-size: 13px; }

/* Chip / Pill */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--white); border: 1px solid var(--ink-100);
  color: var(--ink-500); font-size: 13px; letter-spacing: -.013em;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { color: var(--plum-deep); border-color: var(--plum-300); }
.chip.is-active { background: var(--plum-deep); color: var(--white); border-color: var(--plum-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ink-100);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--plum-deep); }
.brand__logo { height: 26px; width: auto; display: block; }
.brand__mark { font-size: 20px; letter-spacing: -.02em; font-weight: 500; }
.brand__mark--lg { font-size: 28px; }
.brand__divider { width: 1px; height: 14px; background: var(--ink-100); }
.brand__label { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-500); }
.nav { display: none; gap: 4px; align-items: center; }
@media (min-width: 961px) { .nav { display: flex; } }
.nav__link {
  font-size: 14px; letter-spacing: -.014em; color: var(--plum-deep);
  padding: 12px 18px;
  position: relative;
  transition: color .2s var(--ease);
  display: inline-block;
}
.nav__link::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 6px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .28s var(--ease);
}
.nav__link:hover { color: var(--accent); }
.nav__link:hover::after,
.nav__item--mega:hover .nav__link::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .nav__link::after { transition: none; } }

/* ---- Mega menu (Formula / Works) ---- */
.site-header { position: sticky; }
.nav__item--mega { position: static; display: inline-flex; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--ink-100);
  box-shadow: 0 24px 40px -28px rgba(26,20,48,.35);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 60;
}
.nav__item--mega:hover .mega,
.nav__item--mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
/* Escape-to-close: overrides hover/focus-within until pointer/focus leaves the item */
.nav__item--mega.is-collapsed .mega { opacity: 0; visibility: hidden; transform: translateY(-8px); }
.mega__inner { display: flex; gap: 52px; padding: 40px 0 48px; align-items: flex-start; }
.mega__rail { display: flex; flex-direction: column; gap: 18px; min-width: 120px; }
.mega__rail-item { font-size: 19px; color: var(--ink-300); }
.mega__rail-item.is-active { color: var(--plum-deep); font-weight: 500; }
.mega__cats { display: flex; flex-direction: column; gap: 13px; min-width: 150px; }
.mega__cats a { font-size: 15px; font-weight: 500; color: var(--plum-deep); }
.mega__cats a.is-active { text-decoration: underline; text-underline-offset: 4px; }
.mega__cats a:hover { color: var(--accent); }
.mega__accent { color: var(--accent) !important; }
.mega__col { display: flex; flex-direction: column; gap: 9px; min-width: 158px; }
.mega__col h4 { font-size: 15px; font-weight: 600; color: var(--plum-deep); margin: 0 0 2px; }
.mega__col h4 ~ h4 { margin-top: 18px; }
.mega__col a { font-size: 14px; color: var(--ink-500); }
.mega__col a:hover { color: var(--accent); }
.works-empty { text-align: center; color: var(--ink-500); font-size: 15px; padding: 48px 0; margin: 0; }
.mega__col--intro { max-width: 300px; gap: 14px; }
.mega__col--intro p { font-size: 14px; line-height: 1.6; color: var(--ink-500); margin: 0; }
.mega__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--accent); }
.mega__more:hover { color: var(--accent-hover); }
.mega__feature { display: flex; gap: 24px; margin-left: auto; }
.mega__card { display: block; width: 190px; }
.mega__card img { width: 190px; height: 200px; object-fit: cover; border-radius: var(--r-md); background: var(--cream); }
.mega__card strong { display: block; font-size: 15px; font-weight: 500; color: var(--plum-deep); margin: 12px 0 4px; }
.mega__card span { font-size: 13px; line-height: 1.5; color: var(--ink-500); }
@media (max-width: 1200px) { .mega__feature { display: none; } }

/* Formula mega — category rail (left) + texture panels (right) */
.mega--formula .mega__inner { gap: 44px; }
.mega--formula .mega__cats { padding-right: 28px; border-right: 1px solid var(--ink-100); min-width: 168px; }
.mega__cat { display: block; }
.mega__cats a.mega__cat.is-active { color: var(--accent); }
.mega__panels { flex: 1; min-width: 0; }
.mega__panel { display: none; }
.mega__panel.is-active { display: block; }
.mega__panel--all.is-active { display: flex; gap: 40px; flex-wrap: wrap; }
.mega__pcol { display: flex; flex-direction: column; gap: 9px; min-width: 150px; }
.mega__pcol h4, .mega__panel > h4 { font-size: 15px; font-weight: 600; color: var(--plum-deep); margin: 0 0 4px; }
.mega__pcol h4 a, .mega__panel > h4 a { color: var(--plum-deep); }
.mega__pcol h4 a:hover, .mega__panel > h4 a:hover { color: var(--accent); }
.mega__pcol a { font-size: 14px; color: var(--ink-500); }
.mega__pcol a:hover { color: var(--accent); }
.mega__plist { columns: 3; column-gap: 40px; }
.mega__plist a { display: block; font-size: 14px; color: var(--ink-500); margin-bottom: 9px; break-inside: avoid; }
.mega__plist a:hover { color: var(--accent); }
@media (max-width: 1080px) { .mega__plist { columns: 2; } }


/* =========================================================
   1) HERO — category showcase
   ========================================================= */
.hero {
  padding-top: 56px; padding-bottom: 0;           /* no gap — flows straight into Integrated */
  background: var(--white);
}
@media (min-width: 961px) { .hero { padding-top: 80px; padding-bottom: 0; } }

.hero__head { text-align: center; max-width: 880px; margin: 0 auto; }
.hero__head .eyebrow { margin-bottom: 24px; }
.hero__head h1 { margin: 0 0 24px; color: var(--plum-deep); }

/* Hero rotating headline */
.hero__title-fixed { display: block; }
.rotating-words { display: block; position: relative; }
.rotating-words__sizer { display: block; visibility: hidden; }
.rotating-words__list { position: absolute; inset: 0; }
.rotating-words__item {
  position: absolute; left: 0; right: 0; top: 0;
  color: var(--accent);
  opacity: 0; transform: translateY(.5em);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.rotating-words__item.is-active { opacity: 1; transform: translateY(0); }
.rotating-words__item.is-leaving { opacity: 0; transform: translateY(-.5em); }
@media (prefers-reduced-motion: reduce) {
  .rotating-words__item { transition: none; }
  .rotating-words__item:not(.is-active) { opacity: 0; }
  .rotating-words__item.is-active { opacity: 1; transform: none; }
}
.hero__lead {
  /* Hero lead can stay slightly larger since hero title is display-xl (64px) */
  font-size: 17px; line-height: 1.6; letter-spacing: -.02em;
  color: var(--ink-500);
  max-width: 680px; margin: 0 auto 16px;   /* wraps to 2 lines */
}
.hero__cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Category cards grid — 4 horizontal cards */
.hero__categories {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .hero__categories { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hero__categories { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* Category card — image-only by default; description + CTA reveal on hover. */
.cat-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  display: block; cursor: pointer;
  aspect-ratio: 4 / 5;
  background: var(--plum-50);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-product-hover); }
.cat-card__media { position: absolute; inset: 0; overflow: hidden; }
.cat-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--ease);
}
.cat-card:hover .cat-card__media img { transform: scale(1.06); }
.cat-card__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(26,20,48,.4) 0%, rgba(26,20,48,.1) 35%, transparent 60%);
  transition: opacity .35s var(--ease);
}
.cat-card:hover .cat-card__overlay { opacity: 0; }
.cat-card__hover {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,20,48,.85) 0%, rgba(26,20,48,.6) 60%, rgba(26,20,48,.2) 100%);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
.cat-card:hover .cat-card__hover { opacity: 1; }

/* Always-visible label sits at bottom */
.cat-card__label {
  position: absolute; left: 24px; bottom: 22px;
  color: var(--white); z-index: 2;
  transition: transform .35s var(--ease);
}
.cat-card:hover .cat-card__label { transform: translateY(-6px); }
.cat-card__count {
  display: block;
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--plum-300);
  margin-bottom: 6px;
}
.cat-card__category {
  font-size: 28px; letter-spacing: -.04em; font-weight: 400; line-height: 1.1;
  color: var(--white); margin: 0;
}

/* Hover-only block: description + CTA */
.cat-card__reveal {
  position: absolute; left: 24px; right: 24px; bottom: 22px;
  z-index: 3; color: var(--white);
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--ease) .05s, transform .35s var(--ease) .05s;
  pointer-events: none;
}
.cat-card:hover .cat-card__reveal { opacity: 1; transform: translateY(0); }
.cat-card__sub {
  font-size: 13px; line-height: 1.55; letter-spacing: -.013em;
  color: rgba(255,255,255,.8); margin: 10px 0 14px;
}
.cat-card__cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; letter-spacing: -.013em; color: var(--white);
  padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
}
.cat-card__cta svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.cat-card:hover .cat-card__cta svg { transform: translateX(4px); }


/* =========================================================
   2) INTEGRATED SOLUTIONS — precise nodes + converging roads
   ========================================================= */
.integrated {
  background: var(--white);
  position: relative; overflow: hidden;
  padding: 0 0 24px;           /* no top gap — joins hero directly */
  margin-top: 0;
}
@media (min-width: 961px) { .integrated { padding: 0 0 40px; margin-top: 0; } }

.integrated__stage {
  position: relative;
  max-width: 1400px; margin: 0 auto;
  aspect-ratio: 1400 / 600;     /* tighter vertical spacing per reference */
}
@media (max-width: 960px) {
  .integrated__stage { aspect-ratio: auto; padding: 0 24px; }
}

/* SVG covers the full stage at native pixel coordinates */
.integrated__svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
  overflow: visible;
}
/* Circuit base lines — each lane starts at viewport edge, runs through icon,
   curves to headline (icons sit ON the lanes) */
.circuit-base path {
  fill: none;
  stroke: #D6D3DC;
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  vector-effect: non-scaling-stroke;
}

/* Active purple traveling pulse — a short colored segment moves along each lane
   continuously, creating the "signal flowing into the router" feel. */
.circuit-pulse path {
  fill: none;
  stroke: #7C6BFF;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 50 700;
  stroke-dashoffset: 750;
  animation: circuitFlow var(--dur, 4.4s) linear infinite;
  animation-delay: var(--d, 0s);
  vector-effect: non-scaling-stroke;
  opacity: .95;
}
@keyframes circuitFlow {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .circuit-pulse path { animation: none !important; }
}

/* Pill buttons sitting ON each lane. Larger size + lucide icon + soft halo
   shadow wrapping all sides (3 layers: hairline ring + close + spread). */
.ai-button {
  position: absolute;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500;
  letter-spacing: -.014em;
  color: var(--plum-deep);
  white-space: nowrap;
  box-shadow:
    0 0 0 1px rgba(26, 20, 48, .03),     /* hairline ring all-around */
    0 2px 4px  rgba(26, 20, 48, .04),    /* close grounding */
    0 8px 24px rgba(26, 20, 48, .08),    /* mid spread (visible above & below) */
    0 24px 48px -8px rgba(26, 20, 48, .10); /* wide soft halo */
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  cursor: default;
}
.ai-button:hover {
  transform: translate(-50%, -50%) translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(26, 20, 48, .04),
    0 4px 8px  rgba(26, 20, 48, .06),
    0 12px 32px rgba(26, 20, 48, .12),
    0 32px 60px -10px rgba(26, 20, 48, .14);
  border-color: var(--plum-300);
}
.ai-button svg {
  width: 16px; height: 16px; flex: 0 0 16px;
  color: var(--accent);
}

/* Positions — button CENTERS at these % coords.
   X values intentionally NOT in a pattern — random spread within 4-14% / 86-96%. */
.ai-button--L1 { left:  9%;     top:  8.33%; }   /* Planning          ( 126,  50) */
.ai-button--L2 { left: 14%;     top: 20%;    }   /* Formula Dev       ( 196, 120) */
.ai-button--L3 { left:  5%;     top: 32.5%;  }   /* Packaging         (  70, 195) */
.ai-button--L4 { left: 12%;     top: 45%;    }   /* Design            ( 168, 270) */
.ai-button--L5 { left:  7%;     top: 57.5%;  }   /* Marketing Sheet   (  98, 345) */
.ai-button--L6 { left: 13%;     top: 70%;    }   /* Production        ( 182, 420) */
.ai-button--L7 { left:  4%;     top: 82.5%;  }   /* Q.C.              (  56, 495) */
.ai-button--L8 { left: 11%;     top: 94.17%; }   /* Logistics         ( 154, 565) */

/* RIGHT side intentionally NOT mirrored to LEFT — different y rhythm
   (varied spacing 75/70/80/70/75/65/65 vs left's uniform 70-75) and
   different x pattern. All gaps >=65px so no buttons overlap. */
.ai-button--R1 { left: 95%;     top: 13.33%; }   /* Trend            (1330,  80) */
.ai-button--R2 { left: 89%;     top: 25.83%; }   /* Branding         (1246, 155) */
.ai-button--R3 { left: 95%;     top: 37.50%; }   /* Marketing        (1330, 225) */
.ai-button--R4 { left: 84%;     top: 50.83%; }   /* Content          (1176, 305) */
.ai-button--R5 { left: 92%;     top: 62.50%; }   /* Certification    (1288, 375) */
.ai-button--R6 { left: 86%;     top: 75.00%; }   /* Pricing          (1204, 450) */
.ai-button--R7 { left: 94%;     top: 85.83%; }   /* Sales            (1316, 515) */
.ai-button--R8 { left: 88%;     top: 96.67%; }   /* Export           (1232, 580) */

@media (max-width: 960px) {
  .ai-button { display: none; }   /* mobile: hide buttons per spec */
}
@media (max-width: 960px) { .integrated__svg { display: none; } }

.int-paths-base path {
  fill: none;
  stroke: var(--ink-300);
  stroke-width: 1.4;
  stroke-dasharray: 4 7;
  opacity: .55;
}
.int-paths-pulse path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 36 580;
  stroke-dashoffset: 616;
  animation: roadFlow var(--dur, 4s) linear infinite;
  animation-delay: var(--d, 0s);
  opacity: .95;
}
@keyframes roadFlow {
  to { stroke-dashoffset: 0; }
}

/* Mobile: wrapper is just a normal flow container */
.integrated__center-wrap { position: relative; z-index: 3; }
.integrated__center {
  text-align: center;
  max-width: 560px; margin: 0 auto;
  padding: 80px 24px 0;
}
/* Desktop: wrapper does the absolute centering (so data-reveal transforms on
   the inner element don't clobber the centering). */
@media (min-width: 961px) {
  .integrated__center-wrap {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
  }
  .integrated__center { padding: 0 24px; }
}
.integrated__center .eyebrow { margin-bottom: 22px; }
.integrated__center h2 { margin: 0 0 22px; }
/* Logo replaces the old display-lg title — sized to match that title's scale */
.integrated__logo {
  display: block;
  width: auto; height: clamp(40px, 5.2vw, 56px);
  max-width: 100%;
  margin: 0 auto 40px;          /* more breathing room before the button */
}
.integrated__center .lead { margin: 0 auto 32px; }
.integrated__center .btn { padding: 16px 28px; }

/* Node positioning — absolute, matches SVG endpoint coordinates */
.int-node {
  position: absolute; z-index: 2;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: 50%;
  box-shadow: 0 6px 20px -10px rgba(26, 20, 48, .18);
  font-size: 22px; color: var(--plum-deep);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.int-node:hover {
  box-shadow: var(--shadow-floating);
  border-color: var(--plum-300);
}
.int-node__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--plum-50);
  color: var(--plum-deep);
  font-size: 16px;
}
.int-node__tooltip {
  position: absolute;
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-500); white-space: nowrap;
  opacity: 0; transition: opacity .2s var(--ease);
  pointer-events: none;
}
.int-node:hover .int-node__tooltip { opacity: 1; }

/* Staggered node positions (% of stage; matches SVG viewBox 1400×680).
   X positions vary per node so the layout doesn't read like a strict column. */
.int-node { transform: translate(-50%, -50%); }
.int-n1 { left: 12.857%; top: 13.235%; }   /* SVG center (180, 90)   */
.int-n2 { left:  7.143%; top: 35.294%; }   /* (100, 240)            */
.int-n3 { left: 10.714%; top: 55.882%; }   /* (150, 380)            */
.int-n4 { left: 15.000%; top: 77.941%; }   /* (210, 530)            */
.int-n5 { left: 87.143%; top: 13.235%; }   /* (1220, 90)            */
.int-n6 { left: 92.857%; top: 35.294%; }   /* (1300, 240)           */
.int-n7 { left: 89.286%; top: 55.882%; }   /* (1250, 380)           */
.int-n8 { left: 85.000%; top: 77.941%; }   /* (1190, 530)           */
.int-n1 .int-node__tooltip,
.int-n2 .int-node__tooltip,
.int-n3 .int-node__tooltip,
.int-n4 .int-node__tooltip { left: 78px; top: 50%; transform: translateY(-50%); }
.int-n5 .int-node__tooltip,
.int-n6 .int-node__tooltip,
.int-n7 .int-node__tooltip,
.int-n8 .int-node__tooltip { right: 78px; top: 50%; transform: translateY(-50%); }

/* Float animation lives on the icon so it doesn't fight the center transform */
.int-node__icon { animation: nodeFloat 5s ease-in-out infinite; animation-delay: var(--node-delay, 0s); }
@keyframes nodeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.int-node:hover .int-node__icon { animation: none; }

/* Mobile: vertical workflow */
.integrated__mobile { display: none; }
@media (max-width: 960px) {
  .integrated__svg { display: none; }
  .int-node { display: none; }
  .integrated__mobile {
    display: grid; gap: 12px;
    margin: 40px 0 0;
  }
  .integrated__mobile li {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: var(--white); border: 1px solid var(--ink-100);
    border-radius: var(--r-lg);
  }
  .integrated__mobile li .icon {
    width: 40px; height: 40px; flex: 0 0 40px;
    background: var(--plum-50); border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--plum-deep);
  }
  .integrated__mobile li p { font-size: 14px; letter-spacing: -.014em; color: var(--plum-deep); }
}


/* =========================================================
   3) TRUSTED BY — flows directly under Integrated Solutions (same white bg)
   ========================================================= */
.trusted {
  background: var(--white);
  padding: 8px 0 56px;
}
@media (min-width: 961px) { .trusted { padding: 24px 0 96px; } }
.trusted__title {
  text-align: center;
  font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 24px;
}
.trusted__marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.trusted__rows { display: flex; flex-direction: column; gap: 28px; }
.trusted__track {
  display: flex; gap: 84px; width: max-content;
}
.trusted__track--left  { animation: trustedMarquee 44s linear infinite; }
.trusted__track--right { animation: trustedMarqueeRight 50s linear infinite; }
.trusted__logo {
  font-size: 20px; font-weight: 500; letter-spacing: .01em; color: var(--ink-500);
  white-space: nowrap; opacity: .68;
  transition: color .25s var(--ease), opacity .25s var(--ease);
}
.trusted__logo:hover { color: var(--plum-deep); opacity: 1; }
/* Real partner logo images — uniform fixed slot, grayscale → color on hover */
.trusted__rows--logos .trusted__logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 130px; height: 38px; opacity: 1;
}
.trusted__rows--logos .trusted__logo img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1); opacity: .68;
  transition: filter .25s var(--ease), opacity .25s var(--ease);
}
.trusted__rows--logos .trusted__logo:hover img { filter: grayscale(0); opacity: 1; }
@keyframes trustedMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes trustedMarqueeRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}


/* =========================================================
   4 & 8) CURRENTLY IN DEVELOPMENT (Formula / Works)
   ========================================================= */
.dev { background: var(--white); }
.dev__head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 40px;
}
.dev__head h2 { margin: 0; letter-spacing: -.04em; }
.dev__filter { display: flex; gap: 8px; flex-wrap: wrap; }
.dev__grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .dev__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dev__grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.dev-card {
  background: var(--white); border: 1px solid transparent;
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.dev-card.is-hidden { display: none; }
.dev-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink-100);
  box-shadow: var(--shadow-product-hover);
}
.dev-card__media {
  aspect-ratio: 1 / 1; overflow: hidden;
  background: linear-gradient(135deg, var(--plum-100), var(--plum-50));
}
.dev-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s var(--ease);
}
.dev-card:hover .dev-card__media img { transform: scale(1.04); }
.dev-card__body { padding: 18px 20px 22px; }
.dev-card__body .micro { display: block; margin-bottom: 6px; color: var(--ink-500); }
.dev-card__title { font-size: 16px; line-height: 1.4; letter-spacing: -.016em; margin: 0 0 4px; font-weight: 400; color: var(--plum-deep); }
.dev-card__sub { font-size: 13px; color: var(--ink-500); letter-spacing: -.013em; }

/* ---- Formula section: left-aligned head + hashtag chips (per reference) ---- */
.dev--carousel .section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px 32px; flex-wrap: wrap;
  text-align: left; max-width: none; margin: 0 0 40px;
}
.dev--carousel .section-head__text { max-width: 640px; }
.dev--carousel .section-head .lead { margin: 0; max-width: 58ch; }   /* ~2 lines */

/* hashtag-style keyword chips — bottom-aligned, wrap upward as they grow */
.formula-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.formula-tag {
  font-size: 13px; line-height: 1; letter-spacing: -.01em;
  color: var(--plum-deep); background: var(--white);
  border: 1px solid var(--plum-deep); border-radius: var(--r-pill);
  padding: 10px 16px; cursor: default; user-select: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.formula-tag:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* ---- Formula carousel: discrete one-by-one rolling banner ---- */
.formula-carousel { overflow: hidden; }
.formula-carousel__track { display: flex; gap: 16px; will-change: transform; }
.formula-carousel .dev-card {
  flex: 0 0 calc((100% - 16px) / 1.15);   /* mobile: 1 card + peek of next */
  background: transparent; border: none;
}
@media (min-width: 640px) {
  .formula-carousel__track { gap: 24px; }
  .formula-carousel .dev-card { flex-basis: calc((100% - 24px) / 2); }    /* 2 per view */
}
@media (min-width: 1024px) {
  .formula-carousel .dev-card { flex-basis: calc((100% - 4 * 24px) / 5); } /* 5 per view */
}
.formula-carousel .dev-card:hover { transform: none; box-shadow: none; border: none; }

/* image box: bordered, taller-than-wide so L/R crops to fit the height */
.formula-carousel .dev-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.formula-carousel .dev-card:hover .dev-card__media img { transform: scale(1.04); }

/* top-left badges: certifications (Vegan, Cruelty Free) + texture (Soft, Matte) */
.formula-carousel .dev-card__tags {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.formula-carousel .dev-tag {
  font-size: 12px; line-height: 1; letter-spacing: -.01em; color: var(--white);
  background: rgba(26, 20, 48, .52);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  padding: 7px 11px; border-radius: var(--r-sm);
}
/* heart — decorative only, no action */
.formula-carousel .dev-card__like {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: var(--white);
  background: rgba(120, 112, 134, .5);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.formula-carousel .dev-card__like svg { width: 18px; height: 18px; display: block; }

/* text sits OUTSIDE the image border */
.formula-carousel .dev-card__body { padding: 14px 2px 0; text-align: left; }
.formula-carousel .dev-card__cat {
  display: block; font-size: 13px; color: var(--ink-500);
  letter-spacing: -.01em; margin-bottom: 6px;
}
.formula-carousel .dev-card__title {
  margin: 0; font-size: 15px; font-weight: 500; line-height: 1.32;
  text-transform: uppercase; color: var(--plum-deep);
}

.dev__more { text-align: center; margin-top: 44px; }


/* =========================================================
   5) BENEFIT — milestone cards (numbers + Why choose us layout)
   ========================================================= */
.benefit { background: var(--white); }
.benefit__top {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 961px) {
  .benefit__top { grid-template-columns: 7fr 5fr; gap: 80px; }
}
.benefit__numbers {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .benefit__numbers { grid-template-columns: repeat(3, 1fr); } }
.benefit__num-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 16px;
  text-align: center;          /* numbers + labels center within each box */
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
}
.benefit__num-item .count {
  display: block;
  font-size: 44px; line-height: 1; letter-spacing: -.04em; font-weight: 400;
  color: var(--plum-deep); margin-bottom: 10px;
}
.benefit__num-item .suffix { font-size: .65em; color: var(--accent); margin-left: 2px; }
.benefit__num-item .suffix--lg { font-size: 1em; margin-left: 0; }   /* M+ same size as the number */
.benefit__num-item .prefix { color: var(--plum-deep); }
.benefit__num-item .label {
  font-size: 13px; line-height: 1.45; letter-spacing: -.013em;
  color: var(--ink-500);
  min-height: 2.9em;            /* keep every label to ~2 lines for alignment */
  display: flex; align-items: center;
}
.benefit__intro .eyebrow { margin-bottom: 16px; }
.benefit__intro h2 { margin: 0 0 20px; }
.benefit__intro .lead { margin-bottom: 28px; }

.benefit__grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .benefit__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 961px) { .benefit__grid { grid-template-columns: repeat(3, 1fr); } }
.ms-card {
  position: relative;
  background: var(--white); border: 1px solid transparent;
  border-radius: var(--r-lg); padding: 28px;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.ms-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink-100);
  box-shadow: var(--shadow-card-hover);
}
.ms-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--plum-50); color: var(--plum-deep);
  font-size: 18px; margin-bottom: 20px;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.ms-card:hover .ms-card__icon { background: var(--accent); color: var(--white); }
.ms-card__label {
  font-size: 16px; letter-spacing: -.016em;
  color: var(--plum-deep); margin-bottom: 6px;
}
.ms-card__desc {
  font-size: 13px; line-height: 1.55; letter-spacing: -.013em;
  color: var(--ink-500);
}


/* =========================================================
   6) SERVICE — sticky scroll
   ========================================================= */
.service { background: var(--white); padding-top: 56px; }   /* tighter gap from the nav on the Process page */
.service__inner {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 961px) {
  /* Tighter right column so cards aren't oversized; left intro gets a bit more room */
  .service__inner { grid-template-columns: minmax(0, 4.6fr) minmax(0, 6fr); gap: 48px; }
}
@media (min-width: 961px) {
  .service__intro { position: sticky; top: 14vh; align-self: start; }
}
.service__intro .eyebrow { margin-bottom: 18px; }
.service__intro h2 { margin: 0 0 20px; }
.service__intro .lead { margin: 0 0 28px; }
.service__intro .btn { margin-bottom: 36px; }
.service__progress { display: grid; gap: 12px; border-left: 1px solid var(--ink-100); padding-left: 16px; }
.service__progress li {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 14px; letter-spacing: -.014em; color: var(--ink-500);
  transition: color .3s var(--ease);
}
.service__progress li span {
  font-size: 13px; color: var(--ink-300); width: 24px; flex: 0 0 24px;
  transition: color .3s var(--ease);
}
.service__progress li.is-active,
.service__progress li.is-active span { color: var(--accent); }
.service__progress li.is-active { color: var(--plum-deep); }
.service__progress li.is-passed,
.service__progress li.is-passed span { color: var(--ink-300); }

.svc-card-list { display: grid; gap: 24px; }
@media (min-width: 961px) { .svc-card-list { gap: 40px; } }
.service__cards { display: grid; gap: 24px; }
@media (min-width: 961px) {
  .service__cards { gap: 40px; max-width: 640px; }
}
.svc-card {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--r-xl); overflow: hidden;
  transition: opacity .4s var(--ease), border-color .25s var(--ease), filter .4s var(--ease), transform .25s var(--ease);
  opacity: .5; filter: saturate(.85) brightness(.97);
}
.svc-card.is-active { opacity: 1; filter: none; }
.svc-card:hover { transform: translateY(-2px); }
.svc-card__media {
  aspect-ratio: 16 / 10; position: relative;       /* slightly less tall than 16/9 */
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--plum-100), var(--plum-50));
  color: var(--plum-500);
}
.svc-card:nth-child(2n) .svc-card__media { background: linear-gradient(135deg, #FFE9E0, #FFD4C1); color: #C8542E; }
.svc-card:nth-child(3n) .svc-card__media { background: linear-gradient(135deg, #E0F0FF, #C1DAFF); color: #2E5BC8; }
.svc-card:nth-child(5n) .svc-card__media { background: linear-gradient(135deg, #E0FFE7, #BEEFD2); color: #2C8A55; }
.svc-card__media span {
  font-size: clamp(48px, 6vw, 84px); letter-spacing: -.04em; font-weight: 400; opacity: .35;
}
.svc-card__body { padding: 22px 24px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.svc-card__text { min-width: 0; }
.svc-card__body .micro { display: block; margin-bottom: 8px; }
.svc-card__body h3 {
  font-size: 20px; letter-spacing: -.04em; font-weight: 400;    /* 24 → 20 */
  color: var(--plum-deep); margin: 0 0 8px;
}
.svc-card__body p { font-size: 13px; letter-spacing: -.013em; line-height: 1.6; color: var(--ink-500); margin: 0; }
/* white / dark-outline pill that fills with brand purple on hover */
.svc-card__cta {
  flex: none; white-space: nowrap; align-self: center;
  display: inline-flex; align-items: center;
  padding: 10px 17px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500; letter-spacing: -.01em;
  background: var(--white); border: 1px solid var(--plum-deep); color: var(--plum-deep);
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.svc-card__cta:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
@media (max-width: 600px) {
  .svc-card__body { flex-direction: column; align-items: flex-start; gap: 16px; }
}


/* =========================================================
   7) KEY FEATURED — 5 feature cards
   ========================================================= */
.featured { background: var(--cream); }
.featured__grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .featured__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 961px) {
  .featured__grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 360px;
  }
  .featured__grid > .ft-card { grid-column: span 2; }   /* 6 cards → 3 per row, 2 rows */
}
.ft-card {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  display: flex; flex-direction: column;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.ft-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink-100);
  box-shadow: var(--shadow-card-hover);
}
.ft-card__demo {
  position: relative; flex: 0 0 auto;
  height: 223px;
  padding: 24px;
  border-bottom: 1px solid var(--ink-100);
  overflow: hidden;
  background: var(--white);
}
.ft-card__body { padding: 20px 24px 24px; background: var(--white); position: relative; z-index: 1; }
.ft-card__body h3 {
  font-size: 17px; line-height: 1.3; letter-spacing: -.024em; font-weight: 500;
  color: var(--plum-deep); margin: 0 0 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;   /* keep title to 1 line */
}
.ft-card__body p {
  font-size: 13px; line-height: 1.55; letter-spacing: -.013em; color: var(--ink-500);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;  /* max 3 lines */
}
@media (max-width: 640px) { .ft-card__body h3 { white-space: normal; } }

/* --- Card 1: Style Adaptation --- */
.ai-core {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--plum-deep); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; letter-spacing: .04em;
  z-index: 2;
  animation: nodeFloat 4s ease-in-out infinite;
}
.ai-core__pulse {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: pulseSoft 2.8s ease-in-out infinite;
}
@keyframes pulseSoft {
  0%, 100% { transform: scale(1); opacity: .55; }
  50% { transform: scale(1.22); opacity: 0; }
}
.style-pills {
  position: absolute; bottom: 26px; left: 24px; right: 24px;
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
}
.style-pills li {
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--cream); border: 1px solid var(--ink-100);
  font-size: 12px; letter-spacing: -.012em; color: var(--ink-500);
  transition: all .3s var(--ease);
}
.style-pills li.is-active {
  background: var(--accent); color: var(--white); border-color: var(--accent);
}
.sparkle {
  position: absolute; color: var(--accent); font-size: 12px;
  animation: pulseSoft 2.8s ease-in-out infinite;
}
.sparkle--1 { top: 36px; left: 38px; animation-delay: .3s; }
.sparkle--2 { top: 58px; right: 44px; animation-delay: 1.4s; }

/* Card 1 alt: connector lines from AI core (style adaptation flow) */
.ai-core-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; color: var(--ink-300); opacity: .5;
  pointer-events: none;
}

/* --- Card 2: Performance Analytics --- */
.doc-skeleton {
  position: absolute; top: 30px; left: 28px;
  width: 56%;
  display: flex; flex-direction: column; gap: 7px;
}
.doc-skeleton span {
  display: block; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--ink-100), #D7D1E3 50%, var(--ink-100));
  background-size: 200% 100%;
  animation: skeleton 2.4s ease-in-out infinite;
}
.doc-skeleton span:nth-child(1) { width: 90%; }
.doc-skeleton span:nth-child(2) { width: 70%; }
.doc-skeleton span:nth-child(3) { width: 80%; }
.doc-skeleton span:nth-child(4) { width: 60%; }
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.metric-panel {
  position: absolute; right: 22px; bottom: 22px;
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--r-md); padding: 14px 16px;
  box-shadow: var(--shadow-floating);
  width: 56%; max-width: 200px;
  animation: nodeFloat 4.5s ease-in-out infinite;
}
.metric-panel__num { font-size: 32px; letter-spacing: -.04em; font-weight: 400; line-height: 1; color: var(--plum-deep); margin-bottom: 4px; }
.metric-panel__num sub { font-size: .55em; vertical-align: baseline; color: var(--accent); }
.metric-panel__label { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 10px; }
.metric-panel__chart { width: 100%; height: 36px; display: block; color: var(--accent); }
.metric-panel__chart-fill { fill: var(--accent-soft); }
.metric-panel__badge {
  position: absolute; top: -10px; right: 12px;
  padding: 4px 8px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--white);
  font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
}

/* --- Card 3: Format Selection --- */
.format-menu {
  position: relative;
  width: 78%; max-width: 240px;
  margin: 12px auto 0;
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--r-md); padding: 10px 8px;
  box-shadow: 0 6px 20px -10px rgba(26, 20, 48, .12);
  animation: nodeFloat 4.8s ease-in-out infinite;
}
.format-menu li {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 13px; letter-spacing: -.013em; color: var(--ink-500);
  transition: color .25s var(--ease), opacity .25s var(--ease);
  opacity: .65;
}
.format-menu li .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-300);
}
.format-menu li.is-active { color: var(--plum-deep); opacity: 1; }
.format-menu li.is-active .dot { background: var(--accent); }
.format-menu__pointer {
  position: absolute; z-index: 0; left: 6px; right: 6px; top: 10px;
  height: 36px; border-radius: var(--r-sm);
  background: var(--accent-soft);
  transition: transform .45s var(--ease);
}
.format-cursor {
  position: absolute; right: 22px;
  width: 14px; height: 14px;
  color: var(--plum-deep);
  transition: transform .45s var(--ease);
}

/* --- Card 4: Idea Expansion --- */
.idea-graph {
  position: relative;
  height: 100%; min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  padding: 20px 0;            /* extra vertical room so outer nodes are not clipped */
}
.idea-core {
  position: relative; z-index: 2;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--plum-deep); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 0 8px rgba(124, 107, 255, .12);
  animation: pulseRing 3s ease-in-out infinite;
}
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 8px rgba(124, 107, 255, .12); }
  50% { box-shadow: 0 0 0 16px rgba(124, 107, 255, .04); }
}
.idea-node {
  position: absolute;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--white); border: 1px solid var(--ink-100);
  font-size: 12px; letter-spacing: -.012em; color: var(--plum-deep);
  white-space: nowrap;
  left: 50%; top: 50%;
  transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)));
  animation: ideaFloat 4.5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  z-index: 2;
}
@keyframes ideaFloat {
  0%, 100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))); }
  50% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) - 4px)); }
}
.idea-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; color: var(--ink-300); opacity: .45; pointer-events: none; }

/* --- Card 5: Context Flow --- */
.flow-steps {
  display: flex; flex-direction: column; gap: 14px;
  width: 100%; max-width: 320px;
  margin: 8px auto 0;
}
.flow-steps li {
  position: relative;
  display: flex; gap: 12px; align-items: center;
  padding: 14px 16px;
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--r-md);
  transition: opacity .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  opacity: .55;
}
.flow-steps li::before {
  content: ""; position: absolute; left: 27px; top: 100%;
  width: 1px; height: 14px; background: var(--ink-100);
}
.flow-steps li:last-child::before { display: none; }
.flow-steps li.is-active { opacity: 1; border-color: var(--accent); box-shadow: var(--shadow-card-hover); }
.flow-steps__badge {
  width: 26px; height: 26px; flex: 0 0 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--plum-50); color: var(--plum-deep);
  font-size: 12px;
}
.flow-steps li.is-active .flow-steps__badge { background: var(--accent); color: var(--white); }
.flow-steps li p { font-size: 13px; line-height: 1.45; letter-spacing: -.013em; color: var(--plum-deep); }


/* =========================================================
   9) GLOBAL REACH
   ========================================================= */
.global { background: var(--white); }
.global__top {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
  margin-bottom: 64px;
}
@media (min-width: 961px) { .global__top { grid-template-columns: 5fr 7fr; gap: 56px; } }
.global__intro .eyebrow { margin-bottom: 18px; }
.global__intro h2 { margin: 0 0 20px; }

.lang-marquee {
  display: grid; gap: 14px;
  mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.lang-row { overflow: hidden; }
.lang-row--offset { padding-left: 32px; }
.lang-track {
  display: flex; gap: 12px; width: max-content;
  animation: langMarqueeLeft var(--dur, 18s) linear infinite;
}
.lang-row[style*="--dir:-1"] .lang-track { animation-name: langMarqueeRight; }
@keyframes langMarqueeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes langMarqueeRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.chip-lang {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--r-pill);
  font-size: 13px; letter-spacing: -.013em; color: var(--plum-deep);
  white-space: nowrap;
}
.chip-lang .flag { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; display: inline-block; box-shadow: 0 0 0 1px rgba(26,20,48,.08); }

.global__features {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .global__features { grid-template-columns: repeat(3, 1fr); } }
.global__features li {
  padding: 28px;
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.global__features li:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.global__feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--plum-50); color: var(--plum-deep);
  font-size: 18px; margin-bottom: 18px;
}
.global__features h3 { font-size: 18px; letter-spacing: -.02em; font-weight: 400; margin: 0 0 6px; }
.global__features p { font-size: 13px; letter-spacing: -.013em; color: var(--ink-500); }


/* =========================================================
   10) CTA — emphasis section
   ========================================================= */
.cta {
  padding: 64px 0 80px;
  background: var(--white);
}
.cta__inner {
  margin: 0 auto;
  max-width: 1152px;
  background: linear-gradient(135deg, var(--plum-700), var(--plum-deep));
  border-radius: var(--r-xl);
  color: var(--white);
  padding: 64px 24px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta__inner::before {
  content: ""; position: absolute; top: -80px; right: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(124, 107, 255, .35), transparent 70%);
  pointer-events: none;
}
.cta__inner::after {
  content: ""; position: absolute; bottom: -100px; left: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(124, 107, 255, .22), transparent 70%);
  pointer-events: none;
}
@media (min-width: 768px) { .cta__inner { padding: 96px 56px; } }
.cta__inner h2 { color: var(--white); margin: 0 0 18px; }
.cta__inner .lead { color: var(--plum-300); margin: 0 auto 32px; max-width: 56ch; }
.cta__row { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; position: relative; z-index: 1; }


/* =========================================================
   11) FOOTER
   ========================================================= */
.footer { background: var(--plum-deep); color: var(--plum-300); padding: 80px 0 28px; }
.footer__inner {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
@media (min-width: 768px) { .footer__inner { grid-template-columns: 1fr 1fr 1fr; gap: 56px; align-items: start; } }
.footer__news-field { max-width: 320px; }
.footer__logo { height: 30px; width: auto; display: block; filter: brightness(0) invert(1); }
.footer__tag { margin: 18px 0 24px; font-size: 14px; line-height: 1.55; letter-spacing: -.014em; max-width: 38ch; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--plum-300);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.footer__social a:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
/* Footer contact (icon list) */
.footer__contact h4 { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--white); margin: 0 0 18px; font-weight: 400; }
.footer__contact-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer__contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.55; letter-spacing: -.013em; color: var(--plum-300); }
.footer__contact-list li svg { flex: none; margin-top: 1px; color: var(--accent); }
.footer__ci-label { display: block; color: var(--white); font-weight: 500; margin-bottom: 2px; }
.footer__contact-list a { color: var(--plum-300); transition: color .2s var(--ease); }
.footer__contact-list a:hover { color: var(--white); }

/* Footer newsletter — blends with footer */
.footer__news { align-self: start; }
.footer__news-title { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; font-weight: 400; margin: 0 0 12px; color: var(--white); }
.footer__news-sub { font-size: 13px; line-height: 1.6; margin: 0 0 18px; color: var(--plum-300); max-width: 34ch; }
.footer__news-field { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255, 255, 255, .18); padding-bottom: 10px; transition: border-color .2s var(--ease); }
.footer__news-field:focus-within { border-color: rgba(255, 255, 255, .4); }
.footer__news-input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--white); font-size: 14px; font-family: inherit; letter-spacing: -.013em; }
.footer__news-input::placeholder { color: var(--ink-300); }
.footer__news-btn { flex: none; background: transparent; border: none; color: var(--plum-300); cursor: pointer; display: grid; place-items: center; padding: 4px; transition: transform .2s var(--ease), color .2s var(--ease); }
.footer__news-btn:hover { transform: translateX(2px); color: var(--white); }
.footer__news-msg { margin: 12px 0 0; font-size: 13px; color: var(--plum-300); }

/* Back to top */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--white); color: var(--plum-deep); cursor: pointer;
  border: 1px solid var(--ink-100);
  display: grid; place-items: center;
  box-shadow: 0 12px 26px -10px rgba(26,20,48,.5);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background-color .2s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--cream); }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .25s; transform: none; } }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-top: 24px;
  font-size: 13px; letter-spacing: -.013em; color: var(--ink-300);
}
.footer__legal a { color: var(--plum-300); }
.footer__legal a:hover { color: var(--white); }


/* =========================================================
   ENTRANCE REVEAL — gated by .js for progressive enhancement
   ========================================================= */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Section titles float up from a bit further with slight delay for emphasis */
.js [data-reveal] h1,
.js [data-reveal] h2,
.js [data-title-up] {
  opacity: 0; transform: translateY(40px);
  transition: opacity .85s var(--ease) .1s, transform .85s var(--ease) .1s;
}
.js [data-reveal].is-visible h1,
.js [data-reveal].is-visible h2,
.js [data-title-up].is-visible {
  opacity: 1; transform: translateY(0);
}

.js [data-reveal-stagger] > * {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.js [data-reveal-stagger].is-visible > * { opacity: 1; transform: translateY(0); }
.js [data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0s; }
.js [data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: .06s; }
.js [data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: .12s; }
.js [data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: .18s; }
.js [data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: .24s; }
.js [data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: .30s; }
.js [data-reveal-stagger].is-visible > *:nth-child(7) { transition-delay: .36s; }
.js [data-reveal-stagger].is-visible > *:nth-child(8) { transition-delay: .42s; }


/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal], .js [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
  .trusted__track, .lang-track, .int-paths-pulse path,
  .int-node, .ai-core, .metric-panel, .format-menu, .idea-core, .idea-node, .sparkle {
    animation: none !important;
  }
  .doc-skeleton span { animation: none !important; background: var(--ink-100) !important; }
  .trusted__track--left, .trusted__track--right, .reviews__track { animation: none !important; }
}

/* =========================================================
   NEW COMPONENTS (2026 update)
   ========================================================= */

/* Section head — left aligned variant */
.section-head--left { text-align: left; margin-left: 0; margin-right: 0; max-width: 760px; }
.section-head--left .lead { margin-left: 0; margin-right: 0; }
.about-hero { padding-bottom: 24px; }

/* 6th Key Featured card — brand-safe badge */
.ft-card--safe .ft-badge {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 3;
  background: var(--accent-soft); color: var(--accent-hover);
  font-size: 13px; font-weight: 500; padding: 9px 16px; border-radius: var(--r-pill);
  white-space: nowrap;
}

/* PROCESS — text (left) + video (right) */
.process__inner { display: grid; gap: 36px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 961px) { .process__inner { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.process__text .eyebrow { margin-bottom: 16px; }
.process__text h2 { margin: 0 0 14px; }
.process__text .lead { margin: 0 0 28px; max-width: 52ch; }
.video-frame {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(135deg, var(--plum-700), var(--plum-deep));
  color: #fff; text-decoration: none;
}
.video-frame__play {
  width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.16);
  display: grid; place-items: center;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.video-frame__play svg { width: 30px; height: 30px; color: #fff; margin-left: 3px; }
.video-frame:hover .video-frame__play { background: var(--accent); transform: scale(1.06); }
.video-frame__label { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.82); }

/* REVIEWS — animated marquee of client cards */
.reviews { background: var(--cream); overflow: hidden; }
.reviews__marquee {
  overflow: hidden; margin-top: 8px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.reviews__track { display: flex; gap: 16px; width: max-content; padding: 8px 0; animation: reviewsMarquee 70s linear infinite; }
@keyframes reviewsMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.review-card {
  position: relative;
  flex: 0 0 320px; max-width: 86vw;
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--r-lg);
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 22px 44px -30px rgba(26,20,48,.5);
}
.review-card__quote { position: absolute; top: 14px; right: 22px; font-size: 46px; line-height: 1; color: var(--ink-100); font-family: Georgia, serif; }
.review-card__head { display: flex; align-items: center; gap: 12px; }
.review-card__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent-hover)));
}
.review-card__head > span { display: flex; flex-direction: column; gap: 1px; }
.review-card__name { font-weight: 600; font-size: 14px; color: var(--plum-deep); }
.review-card__role { font-size: 12.5px; color: var(--ink-500); }
.review-card__stars { color: #F5A623; letter-spacing: 2px; font-size: 14px; }
.review-card__stars .dim { color: var(--ink-100); }
.review-card__headline { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.015em; color: #d9772b; }
.review-card__body { margin: 0; font-size: 13.5px; line-height: 1.6; letter-spacing: -.01em; color: var(--ink-500); }
.review-card__date { margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--ink-300); border-top: 1px solid var(--ink-100); }

/* WORKS carousel — like Latest Trend Formulas but 4 per view + category filter */
@media (min-width: 1024px) {
  .works-carousel .dev-card { flex-basis: calc((100% - 3 * 24px) / 4); }   /* 4 per view */
}
.works-carousel .dev-card__media { aspect-ratio: 1 / 1; }   /* square works images */
.works-carousel.is-filtered { overflow: visible; }
.works-carousel.is-filtered .formula-carousel__track {
  flex-wrap: wrap; transform: none !important; transition: none !important;
}
.works-section .dev__filter { align-self: flex-end; }

/* Chatbot launcher — always visible bottom-right */
.chatbot-fab {
  position: fixed; right: 24px; bottom: 90px; z-index: 80;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -8px rgba(124,107,255,.6);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.chatbot-fab:hover { transform: translateY(-2px) scale(1.05); background: var(--accent-hover); }
.chatbot-fab svg { width: 24px; height: 24px; }

/* =========================================================
   KEY FEATURED — new motion demos (2026 update)
   ========================================================= */
.demo-cap { margin-top: 16px; font-size: 13px; letter-spacing: -.01em; color: var(--ink-500); text-align: center; }

/* --- Card 1 & 6: connected hub --- */
.ft-card--hub .ft-card__demo { display: grid; place-items: center; padding: 14px; }
.hub { position: relative; width: 240px; height: 190px; }
.hub__core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--plum-deep); color: #fff; z-index: 3;
  display: grid; place-items: center; font-size: 12px; font-weight: 600; letter-spacing: -.02em;
}
.hub__pulse { position: absolute; inset: 0; border-radius: 50%; animation: hubPulse 2.4s ease-out infinite; }
@keyframes hubPulse {
  0%   { box-shadow: 0 0 0 0 rgba(124,107,255,.45); }
  70%  { box-shadow: 0 0 0 24px rgba(124,107,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(124,107,255,0); }
}
.hub__spoke {
  position: absolute; left: 50%; top: 50%; width: 88px; height: 0;
  border-top: 1px dashed var(--ink-300); transform-origin: 0 0; transform: rotate(var(--a)); z-index: 1;
}
.hub__node {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  transform: translate(-50%, -50%)
             translate(calc(88px * cos(var(--a))), calc(88px * sin(var(--a))));
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--r-pill);
  padding: 5px 11px; font-size: 11.5px; font-weight: 500; color: var(--plum-deep);
  white-space: nowrap; box-shadow: 0 6px 14px -8px rgba(26,20,48,.45);
}

/* --- Card 2: messenger --- */
.ft-card--chat .ft-card__demo { display: grid; place-items: center; }
.chat-demo { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 9px; }
.bubble {
  max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 12px; line-height: 1.4;
  opacity: 0; transform: translateY(8px); animation: chatIn 7.5s ease infinite;
}
.bubble--in  { align-self: flex-start; background: linear-gradient(120deg, var(--accent-soft), #e7f5fb); color: var(--plum-deep); border-bottom-left-radius: 4px; }
.bubble--out { align-self: flex-end; background: var(--plum-deep); color: #fff; border-bottom-right-radius: 4px; }
.chat-demo .bubble:nth-child(2) { animation-delay: .9s; }
.chat-demo .bubble:nth-child(3) { animation-delay: 1.8s; }
.chat-demo .bubble:nth-child(4) { animation-delay: 2.7s; }
@keyframes chatIn { 0% { opacity: 0; transform: translateY(8px); } 8%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* --- Card 3: process-optimisation sliders --- */
.ft-card--sliders .ft-card__demo { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.slider-demo { display: flex; gap: 16px; }
.slider { width: 26px; height: 84px; border-radius: 14px; background: var(--plum-50); border: 1px solid var(--ink-100); position: relative; }
.slider i { position: absolute; left: 50%; transform: translateX(-50%); top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); animation: sliderMove 2.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes sliderMove { 0%, 100% { top: 8px; } 50% { top: calc(100% - 22px); } }

/* --- Card 4: Mac window cycling icons --- */
.ft-card--mac .ft-card__demo { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mac-demo { width: 230px; border-radius: 12px; overflow: hidden; border: 1px solid var(--ink-100); background: #fff; box-shadow: 0 16px 32px -22px rgba(26,20,48,.55); }
.mac-demo__bar { display: flex; gap: 6px; padding: 9px 12px; background: var(--cream); border-bottom: 1px solid var(--ink-100); }
.mac-demo__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-300); }
.mac-demo__screen { position: relative; height: 116px; }
.mac-ico { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; font-size: 13px; color: var(--plum-deep); opacity: 0; animation: macCycle 8s ease infinite; animation-delay: calc(var(--i) * 2s); }
.mac-ico b { width: 66px; height: 66px; color: var(--plum-deep); display: grid; place-items: center; }
.mac-ico b svg { width: 46px; height: 46px; stroke-width: 1.3; }
@keyframes macCycle { 0%, 1% { opacity: 0; transform: scale(.92); } 6%, 22% { opacity: 1; transform: none; } 27%, 100% { opacity: 0; } }

/* --- Card 5: document into folder + cycling labels --- */
.ft-card--doc .ft-card__demo { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.doc-demo { position: relative; width: 200px; height: 150px; }
.doc-demo__paper {
  position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  width: 124px; height: 98px; background: #fff; border: 1px solid var(--ink-100); border-radius: 8px;
  padding: 14px 14px 0; box-shadow: 0 12px 22px -16px rgba(0,0,0,.45); z-index: 1;
  animation: docDrop 4.6s ease-in-out infinite;
}
@keyframes docDrop { 0%, 22% { top: 6px; } 60%, 100% { top: 58px; } }
.doc-demo__labels { position: relative; height: 18px; }
.doc-demo__labels b { position: absolute; left: 0; top: 0; font-size: 13px; font-weight: 700; color: var(--accent-hover); opacity: 0; animation: labelCycle 8s ease infinite; animation-delay: calc(var(--i) * 2s); }
@keyframes labelCycle { 0%, 1% { opacity: 0; } 6%, 22% { opacity: 1; } 27%, 100% { opacity: 0; } }
.doc-demo__paper i { display: block; height: 6px; border-radius: 3px; background: var(--ink-100); margin-top: 9px; }
.doc-demo__paper i:nth-child(3) { width: 70%; }
.doc-demo__folder {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 2;
  width: 156px; height: 64px; border-radius: 4px 12px 12px 12px;
  background: linear-gradient(180deg, #bfe3ee, #97d2e4);
}
.doc-demo__folder::before { content: ""; position: absolute; top: -9px; left: 0; width: 64px; height: 12px; border-radius: 6px 6px 0 0; background: #bfe3ee; }

@media (prefers-reduced-motion: reduce) {
  .hub__pulse, .bubble, .slider i, .mac-ico, .doc-demo__paper, .doc-demo__labels b { animation: none !important; }
  .bubble, .mac-ico, .doc-demo__labels b { opacity: 1 !important; }
}

/* =========================================================
   KEY FEATURED — refinements (2026 update 2)
   ========================================================= */
/* Card 1: manufacturer nodes cycle highlight color (like original pills) */
/* one at a time, irregular order — per-node --delay set inline */
.ft-card--hub .hub__node { animation: nodeCycle 8s linear infinite; animation-delay: var(--delay, 0s); }
@keyframes nodeCycle {
  0%, 12% { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px rgba(124,107,255,.6); }
  18%, 100% { background: var(--white); border-color: var(--ink-100); color: var(--plum-deep); box-shadow: 0 6px 14px -8px rgba(26,20,48,.45); }
}

/* Card 3: bigger sliders for visual balance (caption removed) */
.slider { width: 30px; height: 104px; }
.slider i { width: 16px; height: 16px; }
@keyframes sliderMove { 0%, 100% { top: 9px; } 50% { top: calc(100% - 25px); } }

/* Card 5: file box with rising report documents (glassmorphism card) */
.ft-card--report { position: relative; overflow: hidden; }
.ft-card--report .ft-card__demo {
  display: grid; place-items: center;
  background:
    radial-gradient(120px 90px at 28% 30%, rgba(124,107,255,.14), transparent 70%),
    radial-gradient(120px 90px at 78% 78%, rgba(86,194,210,.16), transparent 70%),
    rgba(255,255,255,.7);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ft-card--report:hover { box-shadow: 0 26px 50px -28px rgba(26,20,48,.55); }
.report-demo { position: relative; width: 168px; height: 188px; }
.report-demo__box { position: absolute; inset: 0; animation: boxBreathe 3.6s ease-in-out infinite; }
@keyframes boxBreathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.report-demo__doc {
  position: absolute; left: 50%; top: 18px; transform: translateX(-50%);
  width: 132px; height: 110px; background: #fff; border: 1px solid var(--ink-100); border-radius: 10px;
  padding: 16px 16px 0; box-shadow: 0 14px 26px -16px rgba(26,20,48,.5);
  opacity: 0; animation: reportDoc 8s ease-in-out infinite; animation-delay: calc(var(--i) * 2s);
}
.report-demo__doc b { display: block; font-size: 14px; font-weight: 500; color: var(--plum-deep); letter-spacing: -.01em; margin-bottom: 10px; }
.report-demo__doc i { display: block; height: 6px; border-radius: 3px; background: var(--ink-100); margin-bottom: 7px; }
.report-demo__doc i:nth-child(4) { width: 64%; }
@keyframes reportDoc {
  0%   { opacity: 0; transform: translateX(-50%) translateY(22px) scale(.96); }
  3%   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  22%  { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  27%  { opacity: 0; transform: translateX(-50%) translateY(-11px) scale(1); }
  100% { opacity: 0; }
}
/* front pocket of the file box — docs emerge from behind it */
.report-demo__pocket {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 3;
  width: 152px; height: 96px; border-radius: 4px 14px 14px 14px;
  background: linear-gradient(180deg, #bfe3ee, #8ecade);
}
.report-demo__pocket::before { content: ""; position: absolute; top: -11px; left: 0; width: 66px; height: 14px; border-radius: 8px 8px 0 0; background: #bfe3ee; }

/* Card 6: Korea → worldwide export map */
.ft-card--export .ft-card__demo { display: grid; place-items: center; }
.export-demo { position: relative; width: 276px; max-width: 100%; margin: 0 auto; }
.export-map-img { width: 100%; height: auto; display: block; }
.export-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.export-demo .route { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 5 11; opacity: .8; animation: routeFlow 1.6s linear infinite; animation-delay: var(--d); }
@keyframes routeFlow { to { stroke-dashoffset: -32; } }
.export-demo .dest { fill: var(--accent); opacity: .55; animation: destPulse 2.2s ease-in-out infinite; animation-delay: var(--d); }
@keyframes destPulse { 0%, 100% { opacity: .45; r: 4.5; } 50% { opacity: .95; r: 7; } }
.export-origin { fill: var(--plum-deep); }
.export-origin__ring { fill: none; stroke: var(--accent); stroke-width: 2.5; opacity: .65; transform-origin: 386px 131px; animation: originPulse 2.4s ease-out infinite; }
@keyframes originPulse { 0% { transform: scale(.7); opacity: .75; } 70% { transform: scale(1.8); opacity: 0; } 100% { opacity: 0; } }
.export-origin__kr { fill: #fff; font-size: 9px; font-weight: 700; letter-spacing: .02em; }

@media (prefers-reduced-motion: reduce) {
  .ft-card--hub .hub__node, .report-demo__box, .report-demo__doc,
  .export-demo .route, .export-demo .dest, .export-origin__ring { animation: none !important; }
  .report-demo__doc:nth-of-type(1) { opacity: 1 !important; }
}

/* =========================================================
   REVIEWS — 3D rotating carousel
   ========================================================= */
.reviews--3d { background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%); overflow: hidden; }
.rc3d { position: relative; margin-top: 12px; }
.rc3d::before {
  content: ""; position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: 520px; height: 320px; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(124,107,255,.16), rgba(86,194,210,.10), transparent 72%);
  filter: blur(8px); pointer-events: none;
}
.rc3d__stage { position: relative; height: 388px; perspective: 1200px; z-index: 1; }
.rc3d__card {
  position: absolute; left: 50%; top: 50%;
  width: 286px; height: 332px;
  background: #fff; border: 1px solid rgba(255,255,255,.65); border-radius: 24px;
  box-shadow: 0 30px 64px -30px rgba(26,20,48,.45);
  padding: 26px; display: flex; flex-direction: column; gap: 11px;
  transform-style: preserve-3d; backface-visibility: hidden;
  transform: translate(-50%, -50%);
  transition: transform .8s cubic-bezier(.4,0,.2,1), opacity .8s var(--ease), box-shadow .3s var(--ease);
  will-change: transform, opacity;
}
.rc3d__card:hover { box-shadow: 0 36px 70px -28px rgba(26,20,48,.55); }
.rc3d__quote { position: absolute; top: 14px; right: 22px; font-size: 46px; line-height: 1; color: var(--ink-100); font-family: Georgia, serif; }
.rc3d__head { display: flex; align-items: center; gap: 12px; }
.rc3d__avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 600; background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent-hover))); }
.rc3d__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rc3d__name { font-weight: 600; font-size: 14px; color: var(--plum-deep); }
.rc3d__role { font-size: 11.5px; color: var(--ink-500); line-height: 1.35; }
.rc3d__stars { color: #F5A623; letter-spacing: 2px; font-size: 14px; }
.rc3d__title { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; color: var(--plum-deep); }
.rc3d__body { margin: 0; font-size: 13px; line-height: 1.6; letter-spacing: -.01em; color: var(--ink-500);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.rc3d__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--ink-100); }
.rc3d__cat { font-size: 11.5px; font-weight: 500; color: var(--accent-hover); }
.rc3d__date { font-size: 11.5px; color: var(--ink-300); flex: none; }
.rc3d__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; position: relative; z-index: 2; }
.rc3d__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink-100); background: #fff; color: var(--plum-deep); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.rc3d__arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.rc3d__dots { display: flex; gap: 8px; }
.rc3d__dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--ink-100); cursor: pointer; padding: 0; transition: background-color .25s var(--ease), width .25s var(--ease); }
.rc3d__dot.is-active { background: var(--accent); width: 22px; border-radius: 4px; }
@media (max-width: 700px) { .rc3d__card { width: 84vw; max-width: 300px; } }


/* =========================================================
   CATALOG (formula / works listing) + PRODUCT DETAIL
   ========================================================= */
.catalog { padding: 56px 0 96px; background: var(--white); min-height: 70vh; }
.catalog__crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: -.01em; color: var(--ink-500); margin-bottom: 18px; }
.catalog__head { margin-bottom: 36px; }
.catalog__head h1 { margin: 0 0 12px; }
.catalog__head .lead { margin: 0; max-width: 640px; }
.catalog__crumb a { color: var(--ink-500); transition: color .15s var(--ease); }
.catalog__crumb a:hover { color: var(--accent); }
.catalog__crumb .is-cur { color: var(--plum-deep); }
.catalog__crumb span { color: var(--ink-300); }
.catalog__head { margin-bottom: 22px; }
.catalog__head h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 500; letter-spacing: -.03em; color: var(--plum-deep); margin: 0; }

/* filter bar */
.catalog__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 28px; }
.catalog__clear { margin-left: 4px; padding: 11px 16px; border: none; background: none; font-family: inherit; font-size: 14px; color: var(--ink-500); cursor: pointer; border-radius: var(--r-pill); transition: color .15s var(--ease), background-color .15s var(--ease); }
.catalog__clear:hover { color: var(--accent); background: var(--cream); }
.cat-filter { position: relative; }
.cat-filter__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 16px; border-radius: var(--r-pill);
  background: var(--white); border: 1px solid var(--ink-100);
  font-family: inherit; font-size: 14px; letter-spacing: -.013em; color: var(--plum-deep); cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.cat-filter__btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.cat-filter.is-open .cat-filter__btn svg { transform: rotate(180deg); }
.cat-filter__btn:hover { border-color: var(--plum-300); }
.cat-filter.is-active .cat-filter__btn { border-color: var(--accent); color: var(--accent); }
.cat-filter__count { font-weight: 600; color: var(--accent); }
.cat-filter__panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40;
  min-width: 200px; max-height: 320px; overflow: auto;
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--r-md);
  box-shadow: 0 18px 40px -20px rgba(26,20,48,.3); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.cat-filter.is-open .cat-filter__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.cat-filter__opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--plum-deep); cursor: pointer; }
.cat-filter__opt:hover { background: var(--cream); }
.cat-filter__opt input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* count + controls bar */
.catalog__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.catalog__count { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--plum-deep); }
.catalog__controls { display: flex; gap: 16px; }
.cat-select { position: relative; }
.cat-select__btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; font-family: inherit; font-size: 14px; letter-spacing: -.013em; color: var(--plum-deep); cursor: pointer; padding: 6px 2px; }
.cat-select__btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.cat-select.is-open .cat-select__btn svg { transform: rotate(180deg); }
.cat-select__panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; min-width: 150px; background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--r-md); box-shadow: 0 18px 40px -20px rgba(26,20,48,.3); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; }
.cat-select.is-open .cat-select__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.cat-select__opt { display: block; width: 100%; text-align: left; background: none; border: none; font-family: inherit; font-size: 14px; color: var(--plum-deep); padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.cat-select__opt:hover { background: var(--cream); }
.cat-select__opt.is-sel { color: var(--accent); font-weight: 500; }

/* product grid */
.catalog__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 24px; }
@media (min-width: 640px) { .catalog__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .catalog__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .catalog__grid { grid-template-columns: repeat(5, 1fr); } }
.pcard { display: block; }
.pcard__media { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--cream); aspect-ratio: 1 / 1; }
/* Formula page uses square media (matches the product-card showcase). */
.catalog[data-collection="formula"] .pcard__media { aspect-ratio: 4 / 5; }   /* match landing formula ratio */
/* Formula grid: 4 per row max */
@media (min-width: 1200px) { .catalog[data-collection="formula"] .catalog__grid { grid-template-columns: repeat(4, 1fr); } }

/* Formula rich product card (matches showcase capture) */
.pcard--rich { position: relative; }
.pcard--rich .pcard__media { border-radius: var(--r-lg); transition: box-shadow .25s var(--ease); }
.pcard--rich:hover .pcard__media { box-shadow: 0 20px 44px -22px rgba(26, 20, 48, .28); }
.pcard__flag2 { position: absolute; top: 14px; left: 14px; z-index: 3; background: var(--white); color: var(--plum-deep); font-size: 11px; font-weight: 500; letter-spacing: -.01em; padding: 5px 12px; border-radius: var(--r-pill); box-shadow: 0 2px 8px rgba(26, 20, 48, .12); }
.pcard__flag2--dark { background: var(--plum-deep); color: #fff; }
.pcard__fav { position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; background: var(--white); color: var(--ink-500); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(26, 20, 48, .12); transition: color .15s var(--ease); }
.pcard__fav svg { width: 18px; height: 18px; }
.pcard--rich:hover .pcard__fav { color: var(--accent); }
.pcard__quick { position: absolute; left: 50%; bottom: 14px; top: auto; transform: translate(-50%, 14px); z-index: 3; background: var(--plum-deep); color: #fff; font-size: 14px; font-weight: 500; padding: 11px 22px; border-radius: var(--r-pill); white-space: nowrap; opacity: 0; transition: opacity .25s var(--ease), transform .25s var(--ease); pointer-events: none; }
.pcard--rich:hover .pcard__quick { opacity: 1; transform: translate(-50%, 0); }
/* compliance badge(s), stacked top-left */
.pcard__flags { position: absolute; top: 14px; left: 14px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pcard__flags .pcard__flag2 { position: static; top: auto; left: auto; }
.pcard--rich .pcard__cat { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--ink-500); margin: 16px 0 8px; }
.pcard--rich .pcard__name { font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--plum-deep); line-height: 1.3; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pcard__tag { background: #f3f1f7; color: var(--ink-500); font-size: 12px; letter-spacing: -.01em; padding: 6px 12px; border-radius: var(--r-pill); }
.pcard__rule { display: block; height: 1px; background: var(--ink-100); margin: 16px 0; }
.pcard__meta { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink-500); }
.pcard__moq b { color: var(--plum-deep); font-weight: 600; }
.pcard__region { display: inline-flex; align-items: center; gap: 6px; }
.pcard__region::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #35c08b; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.pcard__badge { display: inline-block; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.85); backdrop-filter: blur(4px); font-size: 11px; font-weight: 500; letter-spacing: -.01em; color: var(--plum-deep); width: fit-content; }
.pcard__like { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.8); color: var(--ink-500); transition: background-color .15s var(--ease), color .15s var(--ease); }
.pcard__like svg { width: 18px; height: 18px; }
.pcard:hover .pcard__like { background: var(--white); color: var(--accent); }
.pcard__cat { display: block; font-size: 12px; letter-spacing: -.01em; color: var(--ink-500); margin: 14px 0 4px; }
.pcard__name { display: block; font-size: 15px; font-weight: 500; letter-spacing: -.014em; color: var(--plum-deep); line-height: 1.4; }
.catalog__empty { grid-column: 1 / -1; text-align: center; color: var(--ink-500); padding: 60px 0; }

/* pagination */
.catalog__pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 48px; }
.pager__num, .pager__nav { min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: none; font-family: inherit; font-size: 14px; color: var(--plum-deep); cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.pager__num:hover, .pager__nav:hover { background: var(--cream); }
.pager__num.is-cur { background: var(--plum-deep); color: var(--white); }
.pager__nav[disabled] { opacity: .3; cursor: default; }

/* =================== PRODUCT DETAIL (PDP) =================== */
.pdp { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 8px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; } }
.pdp__media { }
@media (min-width: 900px) { .pdp__media { position: sticky; top: 96px; } }
/* gallery: thumbnail strip + main image */
.pdp__gallery { display: flex; gap: 12px; align-items: flex-start; }
.pdp__thumbs { display: flex; flex-direction: column; gap: 10px; flex: none; }
.pdp__thumb { width: 62px; height: 62px; border-radius: 12px; overflow: hidden; border: 1px solid var(--ink-100); background: var(--cream); padding: 0; cursor: pointer; transition: border-color .15s var(--ease); }
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp__thumb.is-active { border-color: var(--accent); }
.pdp__thumb:hover { border-color: var(--plum-300); }
.pdp__main { flex: 1; min-width: 0; }
.pdp__main-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-xl); background: var(--cream); display: block; }
@media (max-width: 560px) { .pdp__thumb { width: 52px; height: 52px; } }

/* list card — reveal 2nd image on hover (when product has multiple images) */
.pcard__img2 { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s var(--ease); z-index: 1; }
.pcard:hover .pcard__img2 { opacity: 1; }

/* detail breadcrumb bar — full width, directly under the sticky header */
.catalog[data-product] { padding-top: 0; }
.pdp-crumbbar { border-bottom: 1px solid var(--ink-100); }
.pdp-crumbbar .catalog__crumb { margin: 0; padding: 16px 0; flex-wrap: wrap; }
.pdp-wrap { padding-top: 36px; }

/* detail — related products carousel */
.pdp-related { margin-top: 76px; }
.pdp-related__title { font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--plum-deep); margin: 0 0 24px; }
.pdp__cat { display: block; font-size: 13px; letter-spacing: .01em; color: var(--ink-500); margin-bottom: 10px; }
.pdp__labno { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.pdp__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; color: var(--plum-deep); margin: 0; }

/* detail — stat grid (MOQ / Key Ingredients / Category / Texture / Compliance / Packaging) */
.pdp__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 28px; padding: 32px; background: var(--cream); border-radius: var(--r-xl); }
@media (max-width: 520px) { .pdp__stats { grid-template-columns: 1fr; gap: 22px; padding: 24px; } }
.pdp__stat { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pdp__stat-label { font-size: 14px; color: var(--ink-500); letter-spacing: -.01em; }
.pdp__stat-value { font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--plum-deep); line-height: 1.4; word-break: keep-all; }
.pdp__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pdp__badge { padding: 5px 12px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-hover); font-size: 12px; font-weight: 500; }
.pdp__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pdp__tag { padding: 5px 12px; border-radius: var(--r-pill); background: var(--cream); border: 1px solid var(--ink-100); color: var(--ink-500); font-size: 12px; }

/* accordion */
.acc { margin-top: 32px; border-top: 1px solid var(--ink-100); }
.acc__item { border-bottom: 1px solid var(--ink-100); }
.acc__head { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; background: none; border: none; font-family: inherit; text-align: left; cursor: pointer; padding: 20px 4px; font-size: 16px; font-weight: 600; letter-spacing: -.02em; color: var(--plum-deep); }
.acc__icon { flex: none; color: var(--ink-500); transition: transform .3s var(--ease); }
.acc__icon svg { width: 22px; height: 22px; display: block; }
.acc__item.is-open .acc__icon { transform: rotate(180deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__item.is-open .acc__inner { padding: 0 4px 22px; }
.pdp__ing { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pdp__ing li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.65; color: var(--ink-500); letter-spacing: -.012em; }
.pdp__ing li::before { content: "·"; position: absolute; left: 2px; color: var(--ink-300); }
.pdp__ing b { color: var(--plum-deep); font-weight: 600; }
.pdp__bul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pdp__bul li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.65; color: var(--ink-500); letter-spacing: -.012em; }
.pdp__bul li::before { content: "·"; position: absolute; left: 2px; color: var(--ink-300); }
.pdp__p { font-size: 14.5px; line-height: 1.7; color: var(--ink-500); letter-spacing: -.012em; margin: 0; }
.pdp__cta { margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  .acc__panel { transition: none; }
  .pcard__media img { transition: none; }
}


/* =========================================================
   ABOUT — Our Journey (pinned horizontal timeline / film scroll)
   Base styles below = static vertical timeline (mobile / no-JS /
   reduced-motion). JS adds `.hist--pin` on desktop to switch to the
   pinned, scroll-driven horizontal track. See setupHistoryTimeline().
   ========================================================= */
.section-head--center { text-align: center; max-width: 640px; margin: 0 auto 52px; }

.hist { background: var(--white); padding: clamp(56px, 9vw, 96px) 0; }
.hist__pin { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.hist__head { margin: 0 0 44px; }
.hist__title {
  margin: 0; font-size: clamp(26px, 5vw, 36px); font-weight: 500;
  letter-spacing: -.02em; line-height: 1.14; color: #1a1a1a;
}
.hist__sub {
  margin: 14px 0 0; max-width: 360px;
  font-size: 14px; line-height: 1.55; color: rgba(0,0,0,.5);
}

/* ---- vertical timeline (base / fallback) ---- */
.hist__viewport { position: relative; }
.hist__track {
  position: relative; display: flex; flex-direction: column; gap: 38px;
  padding-left: 26px; border-left: 1px solid rgba(0,0,0,.25);
}
.hist__line { display: none; }
.hist__item { position: relative; }
.hist__tick { display: none; }
.hist__dot {
  position: absolute; left: -27px; top: 8px; width: 7px; height: 7px;
  border-radius: 50%; background: #111;
}
.hist__img {
  display: block; width: 120px; height: 76px; object-fit: cover;
  filter: grayscale(1); border-radius: 2px; margin-bottom: 12px;
  background: rgba(0,0,0,.05);
}
.hist__year {
  display: block; font-size: 22px; font-weight: 600; line-height: 1;
  letter-spacing: -.01em; color: #111; margin-bottom: 10px;
}
.hist__events { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hist__events li {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 13px; line-height: 1.5; color: rgba(0,0,0,.6);
}
.hist__month {
  flex: none; min-width: 30px; font-size: 11px; font-weight: 600;
  letter-spacing: -.01em; color: rgba(0,0,0,.45);
}

/* ---- pinned horizontal mode (desktop, JS-enabled) ---- */
.hist--pin { position: relative; padding-top: 0; }  /* tall scroll area; height set inline by JS. No top padding so the title sits closer to the nav. */
.hist--pin .hist__pin {
  position: sticky; top: 0; height: 100vh;
  max-width: none; margin: 0; padding: 0; overflow: hidden;
}
.hist--pin .hist__head {
  position: absolute; z-index: 3; margin: 0;
  top: clamp(88px, 10vh, 104px);
  /* align the head's left edge to the shared container content edge (like every
     other section), instead of a free 5vw inset that drifts on wide screens. */
  left: max(24px, calc(50vw - var(--container) / 2 + 24px));
}
/* The horizontal line / item markers sit lower than dead-centre so there is
   clear breathing room between the subtitle and the top-row milestones.
   (Offset goes on the viewport, not the track — JS owns the track transform.) */
.hist--pin .hist__viewport {
  position: absolute; inset: 0; display: flex; align-items: center;
  transform: translateY(9vh);
}
.hist--pin .hist__track {
  flex-direction: row; align-items: center; gap: clamp(44px, 6vw, 110px);
  padding: 0 50vw; border-left: 0; height: 1px; will-change: transform;
}
.hist--pin .hist__line {
  display: block; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: rgba(0,0,0,.3); transform: translateY(-50%);
}
.hist--pin .hist__item {
  flex: none; width: clamp(200px, 18vw, 256px); height: 0; position: relative;
  opacity: .3; transition: opacity .45s var(--ease);
}
.hist--pin .hist__item.is-near { opacity: 1; }
.hist--pin .hist__tick {
  display: block; position: absolute; left: 0; top: 0; width: 1px;
  height: 64px; background: rgba(0,0,0,.45);
}
.hist--pin .hist__item[data-side="top"] .hist__tick { transform: translateY(-64px); }
.hist--pin .hist__dot {
  left: 0; top: 0; transform: translate(-50%, -50%); background: #111;
}
.hist--pin .hist__node {
  position: absolute; left: 0; width: clamp(200px, 18vw, 256px);
  transform: scale(.96); transform-origin: left center;
  transition: transform .45s var(--ease);
}
.hist--pin .hist__item[data-side="top"] .hist__node { bottom: 80px; }
.hist--pin .hist__item[data-side="bottom"] .hist__node { top: 80px; }
.hist--pin .hist__item.is-near .hist__node { transform: scale(1); }
.hist--pin .hist__year { color: rgba(0,0,0,.4); margin-bottom: 8px; }
.hist--pin .hist__item.is-near .hist__year { color: #111; }
.hist--pin .hist__img { opacity: .6; transition: opacity .45s var(--ease), filter .45s var(--ease); }
.hist--pin .hist__item.is-near .hist__img { opacity: 1; filter: grayscale(.15); }
.hist--pin .hist__events { display: none; }            /* keep it minimal on the line; show detail only for the centred year */
.hist--pin .hist__item.is-near .hist__events { display: grid; }
/* The centred year's node may grow past the marker column so each month row
   stays on a single line instead of wrapping awkwardly. */
.hist--pin .hist__item.is-near .hist__node { width: auto; min-width: clamp(200px, 18vw, 256px); }
.hist--pin .hist__events li > span:last-child { white-space: nowrap; }

/* Portrait milestone photos (e.g. 2020, 2022): show the full vertical frame
   uncropped; in pinned mode place that year's text to the RIGHT of the image
   so the tall photo isn't squeezed. */
.hist__item--portrait .hist__img {
  width: auto; height: auto; max-height: 170px; max-width: 150px; object-fit: contain;
}
.hist--pin .hist__item--portrait .hist__node { display: flex; align-items: center; gap: 18px; width: auto; }
.hist--pin .hist__item--portrait .hist__img { margin-bottom: 0; }
.hist__item--portrait .hist__body { min-width: 0; }

/* =========================================================
   PLATFORM SHOWCASE — SaaS mockup (left) + company story (right)
   ========================================================= */
.platform { background: var(--cream); }
.platform__inner { display: grid; gap: 44px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 961px) {
  .platform__inner { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 60px; }
}
.platform__text h2 { margin: 0 0 22px; }
.platform__text .lead { margin: 0; }
.platform__text .lead + .lead { margin-top: 16px; }

/* app window — 4:3 screen frame; extra rows clip below the fold like a real app */
.platform__visual {
  border: 1px solid var(--ink-100); border-radius: 16px; overflow: hidden;
  box-shadow: 0 34px 70px -34px rgba(26, 20, 48, .38), 0 2px 10px rgba(26, 20, 48, .05);
}
@media (min-width: 640px) { .platform__visual { aspect-ratio: 16 / 10.5; } }
.pf {
  height: 100%; box-sizing: border-box; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--white); border: none; border-radius: 0; box-shadow: none;
  font-size: 11px; line-height: 1.4; color: var(--plum-deep);
}
.pf__chrome { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #f3f1f7; border-bottom: 1px solid var(--ink-100); }
.pf__dot { width: 9px; height: 9px; border-radius: 50%; background: #d9d5e3; }
.pf__dot:nth-child(1) { background: #ff5f57; }
.pf__dot:nth-child(2) { background: #febc2e; }
.pf__dot:nth-child(3) { background: #28c840; }
.pf__url { margin-left: 10px; font-size: 10px; color: var(--ink-300); }
.pf__topbar { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--ink-100); }
.pf__brand { font-weight: 700; letter-spacing: .06em; font-size: 13px; }
.pf__topright { display: flex; align-items: center; gap: 10px; color: var(--ink-500); }
.pf__pill { border: 1px solid var(--ink-100); border-radius: 999px; padding: 3px 9px; font-size: 10px; }
.pf__date { font-size: 10px; color: var(--ink-300); }
.pf__avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 9px; font-weight: 600; }
.pf__content { padding: 16px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pf__h { margin: 0 0 12px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.pf__toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pf__select, .pf__search { border: 1px solid var(--ink-100); border-radius: 8px; padding: 6px 10px; background: var(--white); color: var(--ink-500); }
.pf__search { flex: 1; min-width: 0; color: var(--ink-300); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf__total { color: var(--ink-300); white-space: nowrap; }
.pf__btn { background: var(--accent); color: #fff; border-radius: 8px; padding: 6px 12px; font-weight: 500; white-space: nowrap; }
/* table rendered as grid rows: fixed header + infinite auto-scroll body */
.pf__grid { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pf__row { display: grid; grid-template-columns: 6% 13% 17% 7% 8% 12% 11% 15% 11%; align-items: center; }
.pf__row > * { padding: 9px 7px; min-width: 0; color: var(--ink-500); }
.pf__row--head { border-bottom: 1px solid var(--ink-100); }
.pf__row--head > * { color: var(--ink-300); font-size: 10px; font-weight: 500; }
.pf__scroll { flex: 1; min-height: 0; overflow: hidden; }
.pf__track { display: flex; flex-direction: column; animation: pf-scroll 34s linear infinite; }
.pf__track .pf__row { border-bottom: 1px solid #f1eff5; }
@keyframes pf-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .pf__track { animation: none; } }
.pf__brandname { font-weight: 600; color: var(--plum-deep); }
.pf__proj { color: var(--plum-deep); }
.pf__proj { color: var(--plum-deep); }
.pf__code { border: 1px dashed #d8d4e2; border-radius: 6px; padding: 2px 7px; color: var(--ink-300); font-size: 10px; }
.pf__flag { width: 19px; height: 13px; object-fit: cover; border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.pf__stage { display: inline-block; border-radius: 999px; padding: 3px 9px; font-size: 10px; font-weight: 500; white-space: nowrap; }
.pf__stage--1 { background: #FBEFD6; color: #9A6B12; }
.pf__stage--2 { background: #D7EFEA; color: #1C7E6E; }
.pf__status { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 10px; font-weight: 500; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
@media (max-width: 520px) {
  .pf__url, .pf__pill, .pf__date { display: none; }
  .pf { font-size: 10px; }
}

/* Mission / Vision / Future Goals — right column of the platform section */
.mvg { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.mvg__item { margin: 0; }
.mvg__title {
  display: flex; align-items: center; gap: 11px; margin: 0 0 12px;
  font-size: 18px; font-weight: 600;
  letter-spacing: -.02em; color: var(--accent);
}
.mvg__check {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
}
.mvg__desc {
  margin: 0; font-size: 16px; line-height: 1.7;
  letter-spacing: -.012em; color: var(--ink-500);
}

/* =========================================================
   TEAM — four expert roles (avatar illustrations, no per-member bg)
   ========================================================= */
.team { background: var(--white); }
.team .section-head--center { max-width: 920px; }
.team .section-head--center .lead { max-width: 680px; margin-left: auto; margin-right: auto; }
.team__grid { display: grid; gap: 40px 56px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .team__grid { grid-template-columns: repeat(2, 1fr); } }   /* 2 columns → 2 rows of 4 experts */
.team-card { display: flex; align-items: center; gap: 22px; text-align: left; }
.team-card__avatar { flex: none; width: 145px; aspect-ratio: 1 / 1; margin: 0; }
/* R&D Project Lead — avatar 10% larger, but keep the container width so the
   text column still starts at the same x as the other cards. */
.team-card__avatar--lg img { transform: scale(1.10); }
.team-card__avatar--shift-r img { transform: translateX(12%); }   /* Brand Strategy Lead figure sits left in its PNG; nudge it right */
.team-card__avatar img { width: 100%; height: 100%; object-fit: contain; display: block; }
.team-card__body { min-width: 0; }
.team-card__role { font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--accent); margin: 0 0 8px; }
.team-card__desc { font-size: 13.5px; line-height: 1.6; letter-spacing: -.012em; color: var(--ink-500); margin: 0; }
@media (max-width: 460px) { .team-card { flex-direction: column; text-align: center; gap: 14px; } }

/* =========================================================
   OUR SERVICE — wave-shaped end-to-end process flow (8 steps)
   Light panel on the page background, brand purple accent,
   sequential reveal on scroll-in.
   ========================================================= */
.svc {
  background: var(--white);
  --svc-accent: var(--accent);    /* brand purple — matches the design system */
  --svc-accent-ink: #ffffff;      /* white icons on the accent fill */
  overflow: hidden;
}
.svc__head { margin-bottom: clamp(40px, 6vw, 72px); }
.svc__head h2 { color: var(--plum-deep); }
.svc__lead { color: var(--ink-500); }

.svc-wave { position: relative; width: 100%; aspect-ratio: 1200 / 360; }
.svc-wave__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.svc-wave__base {
  stroke: rgba(26,20,48,.14); stroke-width: 1.4;
  stroke-dasharray: 1 9; stroke-linecap: round;
}
.svc-wave__active {
  stroke: var(--svc-accent); stroke-width: 2;
  filter: drop-shadow(0 0 4px rgba(124,107,255,.35));
}

.svc-wave__nodes { position: absolute; inset: 0; }
.svc-node { position: absolute; width: 0; height: 0; }
.svc-node__dot {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.85);
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--ink-100);
  color: var(--ink-300);
  opacity: .4; transition: opacity .4s var(--ease), transform .4s var(--ease),
    background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
  z-index: 1;
}
.svc-node__dot svg { opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease) .05s, transform .4s var(--ease) .05s; }
.svc-node__label {
  position: absolute; left: 0; transform: translateX(-50%);
  width: 168px; text-align: center; opacity: .3;
  transition: opacity .45s var(--ease);
}
.svc-node--top .svc-node__label { bottom: 46px; }     /* label above the dot */
.svc-node--bottom .svc-node__label { top: 46px; }     /* label below the dot */
.svc-node__num { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--accent); margin-bottom: 4px; }
.svc-node__title { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--plum-deep); }
.svc-node__sub { display: block; margin-top: 5px; font-size: 12px; line-height: 1.45; letter-spacing: -.01em; color: var(--ink-500); }

/* Active / completed state */
.svc-node.is-active .svc-node__dot {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
  background: var(--svc-accent); border-color: var(--svc-accent); color: var(--svc-accent-ink);
}
.svc-node.is-active .svc-node__dot svg { opacity: 1; transform: translateY(0); }
.svc-node.is-active .svc-node__label { opacity: 1; }

/* Initial (pre-animation) state of the active path so JS can draw it. */
.svc-wave[data-anim="pending"] .svc-wave__active { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .svc-node__dot, .svc-node__dot svg, .svc-node__label { transition: none; }
}

/* ---- Tablet: tighten ---- */
@media (max-width: 1100px) {
  .svc-node__label { width: 140px; }
  .svc-node__sub { font-size: 11px; }
}

/* ---- Mobile: vertical timeline fallback ---- */
@media (max-width: 860px) {
  .svc-wave { aspect-ratio: auto; }
  .svc-wave__svg { display: none; }
  .svc-wave__nodes { position: relative; display: grid; gap: 26px; padding-left: 6px; }
  .svc-wave__nodes::before { content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 1px; background: rgba(26,20,48,.14); }
  .svc-node { position: relative !important; left: auto !important; top: auto !important; width: auto; height: auto; display: flex; align-items: flex-start; gap: 18px; }
  .svc-node__dot { position: relative; transform: scale(.85); width: 56px; height: 56px; flex: none; }
  .svc-node.is-active .svc-node__dot { transform: scale(1); }
  .svc-node__label { position: relative; left: auto; top: auto !important; bottom: auto !important; transform: none; width: auto; text-align: left; padding-top: 6px; }
}

/* =========================================================
   TIMELINE — typical 12-week roadmap (5 steps, straight line).
   Reuses the Our Service reveal JS (data-svc-wave / data-svc-path /
   data-svc-node): the active line draws + steps activate in sequence.
   ========================================================= */
.tl { background: var(--white); }
.tl-track { position: relative; margin-top: 12px; }
.tl-line { position: absolute; left: 10%; width: 80%; top: 27px; height: 2px; overflow: visible; }
.tl-line__base { stroke: rgba(26,20,48,.14); stroke-width: 2; }
.tl-line__active { stroke: var(--accent); stroke-width: 2; }
.tl-track[data-anim="pending"] .tl-line__active { opacity: 0; }

.tl-steps { display: flex; align-items: flex-start; }
.tl-step {
  flex: 1; min-width: 0; position: relative; z-index: 1; padding: 0 8px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  opacity: .4; transition: opacity .45s var(--ease);
}
.tl-step.is-active { opacity: 1; }
.tl-step__dot {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--ink-100); color: var(--ink-300);
  transform: scale(.9);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.tl-step.is-active .tl-step__dot { background: var(--accent); border-color: var(--accent); color: var(--white); transform: scale(1); }
.tl-step__week { margin-top: 18px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--plum-deep); }
.tl-step__label { margin-top: 6px; font-size: 13px; line-height: 1.45; letter-spacing: -.01em; color: var(--ink-500); }

@media (prefers-reduced-motion: reduce) {
  .tl-step, .tl-step__dot { transition: none; }
}
@media (max-width: 760px) {
  .tl-line { display: none; }
  .tl-steps { flex-direction: column; gap: 30px; }
  .tl-step { padding: 0; }
}

/* =========================================================
   INQUIRY — board / listing
   ========================================================= */
.board { background: var(--white); min-height: 70vh; padding-top: 56px; }   /* tighter gap from the nav */
.board__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.board__search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--ink-100); border-radius: var(--r-pill); padding: 10px 16px; flex: 1; min-width: 220px; max-width: 420px; color: var(--ink-300); transition: border-color .15s var(--ease); }
.board__search:focus-within { border-color: var(--accent); }
.board__search input { border: none; outline: none; background: transparent; font: inherit; font-size: 14px; letter-spacing: -.01em; color: var(--plum-deep); width: 100%; }
.board__new { white-space: nowrap; }

.board__table { border-top: 2px solid var(--plum-deep); }
.board__row { display: grid; grid-template-columns: 60px 132px minmax(0, 1fr) 110px 108px 100px; align-items: center; gap: 16px; padding: 16px 12px; border-bottom: 1px solid var(--ink-100); }
.board__row--head { font-size: 12px; letter-spacing: .02em; color: var(--ink-500); font-weight: 500; }
a.board__row { color: inherit; transition: background-color .15s var(--ease); }
a.board__row:hover { background: var(--cream); }
.board__no { font-size: 13px; color: var(--ink-300); }
.board__cat { font-size: 12px; font-weight: 500; color: var(--accent); }
.board__title { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; letter-spacing: -.01em; color: var(--plum-deep); }
.board__title > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__lock { color: var(--ink-300); flex: none; }
.board__meta { font-size: 13px; color: var(--ink-500); }
.board__status { justify-self: start; font-size: 11px; font-weight: 500; padding: 4px 11px; border-radius: var(--r-pill); }
.board__status--answered { background: var(--accent-soft); color: var(--accent); }
.board__status--pending { background: #FBEFD6; color: #9A6B12; }
@media (max-width: 760px) {
  .board__row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 6px; }
  .board__no, .board__cat-cell, .board__author, .board__date, .board__status-head { display: none; }
  .board__row--head { display: none; }
  .board__status { justify-self: end; }
}

/* =========================================================
   NEW INQUIRY MODAL — opened from the board "+ New Inquiry" button.
   Two-tier category select, auto-filled message template, success state.
   Form fields scoped under .modal so they don't leak site-wide.
   ========================================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(26,20,48,.6); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px; overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--white); border-radius: var(--r-xl);
  width: 100%; max-width: 720px;
  box-shadow: 0 32px 64px -16px rgba(26,20,48,.25);
  transform: translateY(20px); transition: transform .3s var(--ease); overflow: hidden;
}
.modal-overlay.is-open .modal { transform: translateY(0); }
.modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 32px 20px; border-bottom: 1px solid var(--ink-100);
}
.modal__header h2 { font-size: 22px; font-weight: 500; letter-spacing: -.03em; color: var(--plum-deep); margin: 0; }
.modal__close {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--plum-50); color: var(--ink-500);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .15s var(--ease);
}
.modal__close:hover { background: var(--ink-100); }
.modal__body { padding: 28px 32px; }
.modal__footer {
  padding: 20px 32px 28px; display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  border-top: 1px solid var(--ink-100);
}

.inq-form { display: flex; flex-direction: column; gap: 20px; }
.inq-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .inq-form .form-row { grid-template-columns: 1fr; } }
.inq-form .form-group { display: flex; flex-direction: column; gap: 6px; }
.inq-form .form-group.span-2 { grid-column: 1 / -1; }
.inq-form label { font-size: 13px; font-weight: 500; color: var(--plum-deep); }
.inq-form .req { color: var(--accent); margin-left: 2px; }
.modal .form-input, .modal .form-select, .modal .form-textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--ink-100); border-radius: var(--r-md);
  font: inherit; font-size: 14px; color: var(--plum-deep); background: var(--white);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  outline: none; appearance: none;
}
.modal .form-input:focus, .modal .form-select:focus, .modal .form-textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,107,255,.12);
}
.modal .form-input::placeholder, .modal .form-textarea::placeholder { color: var(--ink-300); }
.modal .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6577' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer;
}
.modal .form-select:disabled { background-color: var(--plum-50); color: var(--ink-300); cursor: not-allowed; }
.modal .form-textarea { resize: vertical; min-height: 160px; line-height: 1.6; }
.modal .form-textarea.is-filling { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,107,255,.12); }
.type-hint {
  display: none; padding: 10px 14px; border-radius: var(--r-md);
  background: var(--accent-soft); border: 1px solid rgba(124,107,255,.2);
  font-size: 13px; color: var(--plum-500); line-height: 1.5; margin-bottom: 4px;
}
.type-hint.is-visible { display: block; }
.form-divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-300); margin: 4px 0;
}
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--ink-100); }
.modal .success-screen { display: none; flex-direction: column; align-items: center; text-align: center; padding: 48px 32px; gap: 16px; }
.modal .success-screen.is-visible { display: flex; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%; background: #dcfce7;
  display: flex; align-items: center; justify-content: center; color: #166534;
}

/* =========================================================
   START YOUR PROJECT — product development brief (project.html).
   Two-step wizard form + sticky sidebar (timeline / inclusions).
   ========================================================= */
.project { background: var(--cream); }
.project__crumb { padding: 18px 0; font-size: 13px; color: var(--ink-300); }
.project__crumb a { color: var(--ink-300); transition: color .15s var(--ease); }
.project__crumb a:hover { color: var(--accent); }
.project__crumb span { margin: 0 8px; }
.project__crumb .is-cur { color: var(--plum-deep); }
.project-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; padding: 8px 0 88px; }
@media (max-width: 1024px) { .project-layout { grid-template-columns: 1fr; } }

.form-card { background: var(--white); border-radius: var(--r-xl); border: 1px solid var(--ink-100); overflow: hidden; }
.form-card__header { padding: 32px 36px 24px; border-bottom: 1px solid var(--ink-100); }
.form-card__header h1 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 8px; color: var(--plum-deep); }
.form-card__body { padding: 32px 36px; }
@media (max-width: 640px) { .form-card__header, .form-card__body { padding-left: 20px; padding-right: 20px; } }

.form-steps { display: flex; margin-bottom: 36px; }
.form-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.form-step::after { content: ''; position: absolute; top: 14px; left: calc(50% + 14px); right: calc(-50% + 14px); height: 2px; background: var(--ink-100); }
.form-step:last-child::after { display: none; }
.form-step.is-done::after { background: var(--accent); }
.form-step__dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink-100); background: var(--white); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--ink-300); transition: all .2s var(--ease); position: relative; z-index: 1; }
.form-step.is-done .form-step__dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.form-step.is-active .form-step__dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-step span { font-size: 11px; color: var(--ink-500); text-align: center; max-width: 80px; }
.form-step.is-active span { color: var(--accent); }

.form-section { display: none; }
.form-section.is-active { display: block; }
.form-section + .form-section.is-active { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--ink-100); }
.section-title { font-size: 13px; font-weight: 600; line-height: 1.6; letter-spacing: .06em; text-transform: uppercase; color: var(--plum-500); margin-bottom: 24px; padding: 4px 0 12px; border-bottom: 2px solid var(--accent-soft); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-grid.cols-1 { grid-template-columns: 1fr; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.span-2 { grid-column: 1 / -1; }
.form-card label { font-size: 13px; font-weight: 500; color: var(--plum-deep); }
.form-card .req { color: var(--accent); margin-left: 2px; }
.form-card .opt { font-weight: 400; color: var(--ink-300); margin-left: 4px; font-size: 12px; }
.f-input, .f-select, .f-textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--ink-100); border-radius: var(--r-md);
  font: inherit; font-size: 14px; color: var(--plum-deep); background: var(--white);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease); outline: none; appearance: none;
}
.f-input:focus, .f-select:focus, .f-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,107,255,.1); }
.f-input::placeholder, .f-textarea::placeholder { color: var(--ink-300); }
.f-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6577' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer;
}
.f-textarea { resize: vertical; min-height: 100px; line-height: 1.65; }

.radio-group, .check-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.radio-pill, .check-pill { position: relative; }
.radio-pill input, .check-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-pill label, .check-pill label {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: var(--r-pill);
  border: 1.5px solid var(--ink-100); background: var(--white);
  font-size: 13px; font-weight: 500; color: var(--ink-500); cursor: pointer; transition: all .15s var(--ease); user-select: none;
}
.radio-pill input:checked + label, .check-pill input:checked + label { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

.field-note { font-size: 13px; line-height: 1.5; color: var(--ink-500); margin: -12px 0 22px; }
.field-note strong { color: var(--accent); }
.field-note.is-error { color: #ef4444; }
.field-note.is-error strong { color: #ef4444; }
.form-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--ink-100); }
.form-nav--end { justify-content: flex-end; }

.project-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.sidebar-card { background: var(--white); border-radius: var(--r-xl); border: 1px solid var(--ink-100); padding: 28px; }
.sidebar-card__title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; margin: 0 0 16px; letter-spacing: -.03em; color: var(--plum-deep); }
.sidebar-card__title svg { color: var(--accent); flex: none; }
.sidebar-timeline { display: flex; flex-direction: column; gap: 16px; }
.tl-item { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 5px; }
.tl-item strong { color: var(--plum-deep); }
.tl-item span { color: var(--ink-500); }
.sidebar-guarantee { display: flex; flex-direction: column; gap: 12px; }
.guarantee-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-700); }
.guarantee-item svg { color: var(--accent); flex: none; }

.form-card .success-screen { display: none; text-align: center; padding: 64px 36px; flex-direction: column; align-items: center; gap: 18px; }
.form-card .success-screen.is-visible { display: flex; }
.success-icon-big { width: 80px; height: 80px; border-radius: 50%; background: #dcfce7; display: flex; align-items: center; justify-content: center; color: #166534; }

/* =========================================================
   CHATBOT — panel opened from the floating .chatbot-fab.
   Built once by setupChatbot() in script.js, present on every page.
   ========================================================= */
.chat-panel {
  position: fixed; bottom: 92px; right: 28px; z-index: 99;
  width: 360px; max-width: calc(100vw - 40px);
  max-height: min(560px, calc(100vh - 140px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--r-xl); box-shadow: var(--shadow-floating);
  opacity: 0; transform: translateY(12px) scale(.98); transform-origin: bottom right;
  pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.chat-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.chat-panel__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--plum-deep); color: var(--white); }
.chat-panel__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; flex: none; }
.chat-panel__who { display: flex; flex-direction: column; line-height: 1.3; }
.chat-panel__name { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.chat-panel__status { font-size: 11px; color: var(--plum-300); display: flex; align-items: center; gap: 5px; }
.chat-panel__status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.chat-panel__close { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; transition: background .15s var(--ease); }
.chat-panel__close:hover { background: rgba(255,255,255,.24); }
.chat-panel__body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--cream); }
.chat-msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
.chat-msg--bot { align-self: flex-start; background: var(--white); border: 1px solid var(--ink-100); color: var(--plum-deep); border-bottom-left-radius: 4px; }
.chat-msg--user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chat-quick button { padding: 7px 13px; border-radius: var(--r-pill); border: 1px solid var(--ink-100); background: var(--white); font-size: 12.5px; font-weight: 500; color: var(--accent); cursor: pointer; transition: background .15s var(--ease), border-color .15s var(--ease); }
.chat-quick button:hover { background: var(--accent-soft); border-color: var(--accent); }
.chat-panel__foot { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--ink-100); background: var(--white); }
.chat-panel__input { flex: 1; min-width: 0; border: 1.5px solid var(--ink-100); border-radius: var(--r-pill); padding: 9px 14px; font: inherit; font-size: 13px; color: var(--plum-deep); outline: none; transition: border-color .15s var(--ease); }
.chat-panel__input:focus { border-color: var(--accent); }
.chat-panel__send { width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; cursor: pointer; transition: background .15s var(--ease); }
.chat-panel__send:hover { background: var(--accent-hover); }
.chat-panel__send:disabled, .chat-panel__input:disabled { opacity: .55; cursor: default; }
.chat-panel__avatar { font-weight: 600; font-size: 15px; }
.chat-typing { display: inline-flex; gap: 4px; align-items: center; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-300); animation: chatDot 1s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-lead { display: flex; flex-direction: column; gap: 8px; align-self: stretch; background: var(--white); border: 1px solid var(--ink-100); border-radius: 14px; padding: 12px; }
.chat-lead input { border: 1.5px solid var(--ink-100); border-radius: var(--r-pill); padding: 9px 14px; font: inherit; font-size: 13px; color: var(--plum-deep); outline: none; transition: border-color .15s var(--ease); }
.chat-lead input:focus { border-color: var(--accent); }
.chat-lead button { padding: 9px 14px; border-radius: var(--r-pill); border: none; background: var(--plum-deep); color: #fff; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s var(--ease); }
.chat-lead button:hover { background: var(--accent); }
.chat-lead__link { font-size: 12px; color: var(--accent); text-align: center; text-decoration: none; }
.chat-lead__link:hover { text-decoration: underline; }
@media (max-width: 480px) { .chat-panel { right: 12px; left: 12px; width: auto; bottom: 84px; } }

/* =========================================================
   FAQ — hero + search, pill category tabs, accordion (details),
   live search filter, fallback CTA that deep-links into the inquiry
   modal (faq.html). Mirrors the reference layout in our tokens.
   ========================================================= */
.faq-hero { padding: 56px 0 48px; text-align: center; border-bottom: 1px solid var(--ink-100); background: var(--white); }
.faq-hero h1 { margin: 10px 0 14px; }
.faq-hero .lead { max-width: 540px; margin: 0 auto 32px; }
.faq-search {
  display: flex; align-items: center; gap: 10px; max-width: 480px; margin: 0 auto;
  padding: 12px 20px; border-radius: var(--r-pill); border: 1.5px solid var(--ink-100);
  background: var(--white); color: var(--ink-300);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.faq-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,107,255,.1); }
.faq-search input { border: none; outline: none; font: inherit; font-size: 15px; color: var(--plum-deep); width: 100%; background: transparent; }
.faq-search input::placeholder { color: var(--ink-300); }

.faq-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 24px 0; }
.faq-tab {
  padding: 8px 18px; border-radius: var(--r-pill); border: 1.5px solid var(--ink-100); background: var(--white);
  font-size: 14px; font-weight: 500; color: var(--ink-500); white-space: nowrap; transition: all .18s var(--ease);
}
.faq-tab:hover { border-color: var(--accent); color: var(--accent); }
.faq-tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.faq-tab__count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--plum-50); color: var(--plum-500); font-size: 10px; margin-left: 6px; }
.faq-tab.is-active .faq-tab__count { background: rgba(255,255,255,.25); color: #fff; }

.faq-main { padding: 0 0 80px; background: var(--white); }
.faq-section { margin-bottom: 44px; }
.faq-section__title { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-300); margin-bottom: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--ink-100); }
.faq-item { border-bottom: 1px solid var(--ink-100); }
.faq-item.is-hidden { display: none; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 500; color: var(--plum-deep); transition: color .18s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item[open] summary { color: var(--accent); }
.faq-icon { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--plum-50); color: var(--ink-500); display: flex; align-items: center; justify-content: center; transition: transform .25s var(--ease), background-color .18s var(--ease), color .18s var(--ease); }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--accent-soft); color: var(--accent); }
.faq-answer { padding: 0 44px 20px 0; font-size: 14.5px; line-height: 1.7; color: var(--ink-500); }
.faq-answer p + p { margin-top: 10px; }
.faq-answer strong { color: var(--plum-deep); font-weight: 600; }
.faq-answer a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.faq-empty { display: none; text-align: center; padding: 64px 0; color: var(--ink-300); }
.faq-empty.is-visible { display: block; }
.faq-empty__title { font-size: 18px; font-weight: 500; color: var(--plum-deep); margin: 0 0 8px; }

.faq-fallback { background: var(--plum-50); border-radius: var(--r-xl); padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-top: 16px; }
.faq-fallback h3 { font-size: 22px; margin: 0 0 10px; color: var(--plum-deep); }
.faq-fallback .lead { max-width: 460px; margin: 0; }
.faq-fallback__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* =========================================================
   i18n — language switcher + FOUC guard + RTL safety
   ========================================================= */
html.i18n-pending body { visibility: hidden; }

.site-header__inner .lang-switch { margin-left: 4px; }
.lang-switch { position: relative; flex: none; }
.lang-switch__btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--ink-100); border-radius: var(--r-pill); padding: 8px 12px; font-family: inherit; font-size: 13px; line-height: 1; color: var(--plum-deep); cursor: pointer; transition: border-color .15s var(--ease), color .15s var(--ease); }
.lang-switch__btn:hover { border-color: var(--plum-300); }
.lang-switch__cur { font-weight: 600; letter-spacing: .02em; }
.lang-switch__chev { transition: transform .2s var(--ease); }
.lang-switch.is-open .lang-switch__chev { transform: rotate(180deg); }
.lang-switch__menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 176px; background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--r-md); box-shadow: 0 16px 36px -16px rgba(26, 20, 48, .28); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; z-index: 80; }
.lang-switch.is-open .lang-switch__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switch__opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: start; background: none; border: 0; border-radius: 8px; padding: 9px 12px; font-family: inherit; font-size: 14px; color: var(--plum-deep); cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease); }
.lang-switch__opt:hover:not([disabled]) { background: var(--cream); color: var(--accent); }
.lang-switch__opt[aria-current="true"] { color: var(--accent); font-weight: 600; }
.lang-switch__opt.is-soon { color: var(--ink-300); cursor: default; }
.lang-switch__soon { font-size: 11px; color: var(--ink-300); border: 1px solid var(--ink-100); border-radius: var(--r-pill); padding: 2px 7px; white-space: nowrap; }

/* RTL baseline (for Arabic when enabled) — logical props above handle most mirroring */
[dir="rtl"] .lang-switch__menu { text-align: right; }
[dir="rtl"] .mega { direction: rtl; }
