/* ==========================================================================
   C13 — bankmetha in the V3 design system

   tokens.css and bundle.css are the system, copied unmodified. This file is
   only page layout: where the system's components sit, how the bands stack,
   and the few sizes a component needs to fit bankmetha's content (four plan
   cards in a row, five value cards, Thai text in a 26px stat). Every colour,
   radius, shadow, curve and duration below is a token from the system.

   Layout rules taken from the system's README:
   - gutters 24px desktop, 16px mobile; title to content space-40;
     a light band leaves space-140 below, a covered one space-188
   - stacked bands get radius-48 top corners (radius-28 on mobile) and slide
     48px up over the band before
   - section titles centred, max 62rem
   ========================================================================== */

html { scroll-behavior: auto; }   /* ScrollTrigger owns scrolling; smooth CSS scroll desyncs it */
body { overflow-x: clip; }

/* ---------- header ---------- */
.site-nav {
  position: fixed; inset: 12px 0 auto; z-index: 50;
  display: flex; justify-content: center; padding: 0 var(--space-16);
  pointer-events: none;
}
.site-nav .w3-nav { pointer-events: auto; }
.logo-word { color: var(--ink); font: 600 17px/1 var(--font-sans); letter-spacing: -.02em; }
.w3-pill.is-logo { gap: var(--space-8); text-decoration: none; }
.w3-pill.is-logo img { height: 28px; width: 28px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-content: center; justify-items: center;
  gap: var(--space-56);
  padding: var(--space-140) var(--space-24) var(--space-188);
  overflow: clip;
  text-align: center;
  background:
    radial-gradient(60% 55% at 18% 8%, color-mix(in srgb, var(--os-glass) 70%, transparent), transparent 70%),
    radial-gradient(50% 50% at 88% 20%, color-mix(in srgb, var(--os-lilac) 16%, transparent), transparent 70%),
    var(--bg);
}
/* With motion, the hero is exactly one screen and is pinned while the cards
   part and the portrait rises; its bottom edge is the screen's bottom, so the
   next band slides over the portrait's waist instead of leaving it cut off in
   mid air. Without JS or with reduced motion it stays an ordinary tall hero
   and the portrait sits below the cards as plain content. */
html.js .hero:not(.is-calm) {
  box-sizing: border-box; height: 100svh; min-height: 640px;
  align-content: start; gap: var(--space-40);
  padding: 120px var(--space-24) 0;
}
.hero-copy, .hero-cards { position: relative; z-index: 2; }

/* the portrait and the three floating cards */
.hero-stage { position: relative; width: min(100%, 900px); height: min(74svh, 640px); pointer-events: none; }
html.js .hero:not(.is-calm) .hero-stage { position: absolute; inset: 0; width: auto; height: auto; z-index: 3; }
.hero-me {
  position: absolute; bottom: 0; left: 50%; translate: -50% 0; height: min(74svh, 640px); width: auto;
  /* Fades into the page instead of stopping on a hard edge. The next band
     overlaps the hero by 48px (radius-48 stacking) and is opaque, so the fade
     has to be finished above that line or the band's top edge is the cut. */
  --fade: linear-gradient(to bottom, #000 calc(100% - 270px), rgb(0 0 0 / .6) calc(100% - 190px),
          rgb(0 0 0 / .2) calc(100% - 120px), transparent calc(100% - 60px));
  -webkit-mask-image: var(--fade);
  mask-image: var(--fade);
}
.float-card { position: absolute; z-index: 2; width: 232px; text-align: left; }
/* Built from the system's own parts: the Wheel's floating card (white card,
   hairline, tinted icon tile, small caps kind over a title) carrying a
   PlanCard tick list. Each card takes one area colour from the tokens. */
.fc-in {
  padding: var(--space-16) var(--space-16) var(--space-20);
  border: 1px solid var(--line); border-radius: var(--radius-20);
  background: var(--card); box-shadow: var(--shadow-card);
}
.fc-head { display: flex; align-items: center; gap: 12px; }
.fc-in .w3-wheel-title { font-weight: 600; font-size: 17px; }
.fc-in .w3-plan-points { margin: var(--space-14) 0 0; padding-top: var(--space-14); gap: 6px; }
.fc-in .w3-plan-points li { font-size: 14px; }
.fc-in .w3-plan-points .w3-ic { color: color-mix(in srgb, var(--area) 62%, var(--ink)); }
.fc-brand { right: calc(50% + 150px); top: 30%; }
.fc-perf  { right: calc(50% + 118px); top: 63%; }
.fc-ux    { left: calc(50% + 128px);  top: 40%; }
.hero-copy { display: grid; justify-items: center; gap: var(--space-24); max-width: 62rem; }
.hero .w3-h1 { font-size: 64px; }
.hero .lead { margin: 0; max-width: 40rem; color: var(--ink-2); font: 400 20px/1.7 var(--font-sans); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-12); }
.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-8) var(--space-24);
  margin: var(--space-8) 0 0; padding: 0; list-style: none;
  color: var(--ink-3); font: 400 13px/1.4 var(--font-sans);
}
.hero-stats b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* four real sites, fanned like a hand of cards */
.hero-cards { display: flex; justify-content: center; align-items: flex-start; }
.hero-card { margin-inline: -18px; }
.hero-card:nth-child(1) { rotate: -7deg; translate: 0 34px; }
.hero-card:nth-child(2) { rotate: -2.5deg; }
.hero-card:nth-child(3) { rotate: 2.5deg; }
.hero-card:nth-child(4) { rotate: 7deg; translate: 0 34px; }
.hero-card .w3-card { width: 264px; }
.hero-card .w3-card-media { aspect-ratio: 4 / 3; }
.hero-card .w3-card-media img { object-position: top; }

/* ---------- bands ---------- */
.band {
  position: relative;
  margin-top: -48px;
  display: grid; justify-items: center;
  padding: var(--space-140) var(--space-24) var(--space-188);
  border-radius: var(--radius-48) var(--radius-48) 0 0;
  background: var(--bg);
}
.band > .w3-title + * { margin-top: var(--space-40); }
.band-soft { background: var(--bg-soft); }
.band-end { padding-bottom: var(--space-40); }

/* intro statement under the hero */
.band-intro { padding-top: var(--space-96); padding-bottom: var(--space-72); }
.intro-statement { max-width: 64rem; }
.intro-grad { color: transparent; background: linear-gradient(90deg, var(--os-blue), var(--g3)); -webkit-background-clip: text; background-clip: text; font-weight: 600; }
.intro-ink { color: var(--ink); font-weight: 500; }
@media (max-width: 640px) { .intro-statement { font-size: 24px; } }

/* clients */
.band-logos { padding-top: var(--space-96); padding-bottom: var(--space-140); }
.logos-label { margin: 0; color: var(--ink-3); font: 600 11px/1.4 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; }
.logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: var(--space-24) var(--space-36);
  max-width: 72rem; margin: var(--space-28) 0 0; padding: 0; list-style: none;
}
.logos img { display: block; height: 34px; width: auto; filter: grayscale(1) contrast(1.4); opacity: .85; transition: filter var(--dur-hover) var(--ease-hover), opacity var(--dur-hover) var(--ease-hover); }
.logos li:hover img { filter: none; opacity: 1; }

/* feature window: four live sites, each playing its full-page scroll */
.showcase { display: grid; justify-items: center; gap: var(--space-24); width: min(100%, 1066px); }
.showcase .w3-window { width: 100%; }
.showcase .w3-window-shot { aspect-ratio: 1120 / 528; }
.showcase .w3-window-shot video { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.showcase-cap { margin: 0; color: var(--ink-3); font: 400 13px/1.4 var(--font-sans); }

/* ---------- services: five plan cards on the home page ---------- */
.home-plans { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.home-plans .w3-plan { padding: var(--space-40) var(--space-20) var(--space-24); }
.home-plans .w3-plan-price { font-size: clamp(34px, 2.6vw, 44px); }
.home-plans .w3-plan-price.is-quote { font-size: clamp(26px, 2vw, 32px); }
.home-plans .plan-desc { min-height: 3.3em; }
.est-types { flex-wrap: wrap; }
#est-link { color: inherit; text-underline-offset: 3px; }

/* ---------- process: five value cards ---------- */
.values {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: var(--space-20);
  width: min(100%, 1392px);
}
.values .w3-value { width: auto; }
.values .w3-value-word { font-size: clamp(20px, 1.75vw, 30px); }
/* home: "our services", six picture cards, prices live in #services further down */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24) var(--space-20); width: min(100%, 1240px); }
.svc-card {
  display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-12) var(--space-12) var(--space-24);
  border: 1px solid var(--line); border-radius: var(--radius-28); background: var(--card); color: var(--ink); text-decoration: none;
  transition: border-color var(--dur-hover) var(--ease-hover), translate var(--dur-hover) var(--ease-hover), box-shadow var(--dur-hover) var(--ease-hover);
}
.svc-card:hover { translate: 0 -4px; border-color: color-mix(in srgb, var(--ink) 20%, transparent); box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--ink) 45%, transparent); }
.svc-card:focus-visible { outline: 2px solid var(--os-blue); outline-offset: 3px; }
.svc-pic { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: var(--space-8); border-radius: var(--radius-20); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.svc-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale .6s var(--ease-hover); }
.svc-card:hover .svc-pic img { scale: 1.05; }
.svc-pic.is-drawn { display: grid; place-content: center; justify-items: center; gap: var(--space-16);
  background: radial-gradient(70% 90% at 20% 0%, color-mix(in srgb, var(--g2) 40%, transparent), transparent 70%),
              radial-gradient(70% 90% at 100% 100%, color-mix(in srgb, var(--g3) 40%, transparent), transparent 70%), #121826; }
.svc-ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: var(--radius-16); background: rgb(255 255 255 / .12); color: #fff; }
.svc-ic .w3-ic { width: 28px; height: 28px; }
.svc-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0 var(--space-16); list-style: none; }
.svc-tags li { padding: 5px 10px; border-radius: var(--radius-pill); background: rgb(255 255 255 / .1); color: rgb(255 255 255 / .85); font: 500 12px/1 var(--font-sans); }
.svc-num, .svc-card h3, .svc-card p, .svc-price, .svc-more { margin: 0; padding-inline: var(--space-12); }
.svc-num { color: var(--ink-3); font: 600 12px/1 var(--font-sans); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.svc-card h3 { font: 600 21px/1.35 var(--font-sans); text-wrap: balance; }
.svc-card p { color: var(--ink-2); font: 400 15px/1.6 var(--font-sans); text-wrap: pretty; }
.svc-price { color: var(--ink-3); font: 400 14px/1.4 var(--font-sans); }
.svc-price b { color: var(--ink); font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.svc-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: var(--space-8); font: 600 14px/1 var(--font-sans); }
.svc-more .w3-ic { transition: translate var(--dur-hover) var(--ease-hover); }
.svc-card:hover .svc-more .w3-ic { translate: 4px 0; }
.tech-strip { display: grid; justify-items: center; gap: var(--space-16); width: min(100%, 1240px); margin-top: var(--space-48); padding-top: var(--space-28, 28px); border-top: 1px solid var(--line); }
.tech-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 0; padding: 0; list-style: none; }
.tech-logos li { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-3); font: 500 13px/1.4 var(--font-sans); white-space: nowrap; transition: color var(--dur-hover) var(--ease-hover); }
.tech-logos li:hover { color: var(--ink); }
.tech-ic { flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
@media (max-width: 640px) {
  .tech-logos { gap: 8px 16px; }
}
@media (max-width: 1080px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; gap: var(--space-16); } }
/* the home page shows the seven steps of /process as a bento grid */
.bento {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(170px, auto); gap: var(--space-16);
  grid-template-areas: "brief brief system options" "build build system test" "build build live care";
  width: min(100%, 1240px);
}
.bt {
  position: relative; display: flex; flex-direction: column; gap: var(--space-8); overflow: hidden;
  padding: var(--space-24); border: 1px solid var(--line); border-radius: var(--radius-28); background: var(--card);
  transition: border-color var(--dur-hover) var(--ease-hover), translate var(--dur-hover) var(--ease-hover);
}
.bt:hover { border-color: color-mix(in srgb, var(--ink) 22%, transparent); translate: 0 -3px; }
.bt-step { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink-3); font: 600 12px/1.4 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; }
.bt-step b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); font-size: 12px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.bt h3 { margin: var(--space-4) 0 0; color: var(--ink); font: 600 20px/1.35 var(--font-sans); text-wrap: balance; }
.bt-short { margin: 0; color: var(--ink-2); font: 400 15px/1.6 var(--font-sans); text-wrap: pretty; }
.bt-see { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: auto 0 0; padding-top: var(--space-12); color: var(--ink); font: 500 14px/1.4 var(--font-sans); }
.bt-see span { color: var(--ink-3); font-size: 12px; }
.bt-see .w3-ic { color: var(--check); }
.bt-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-top: var(--space-8); border-radius: var(--radius-14); background: color-mix(in srgb, var(--os-blue) 22%, transparent); color: var(--os-sky, #7cc4ff); }
/* the big tiles carry a glow and a small picture of the step */
.bt-brief, .bt-build { background: radial-gradient(80% 90% at 100% 0%, color-mix(in srgb, var(--g3) 22%, transparent), transparent 60%), var(--card); }
.bt-system { background: radial-gradient(90% 60% at 0% 100%, color-mix(in srgb, var(--g2) 26%, transparent), transparent 65%), var(--card); }
.bt-refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); margin: var(--space-8) 0 0; padding: 0; list-style: none; }
.bt-refs img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-12); }
.bt-sys { flex: 1; grid-template-rows: 1fr auto auto; display: grid; gap: var(--space-12); margin-top: var(--space-8); }
.bt-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.bt-swatches li { height: 100%; min-height: 54px; border-radius: var(--radius-12); background: var(--c); }
.bt-aa { display: flex; align-items: baseline; gap: var(--space-12); margin: 0; }
.bt-aa b { color: var(--ink); font: 600 44px/1 var(--font-sans); white-space: nowrap; }
.bt-aa span { color: var(--ink-3); font: 400 12px/1.4 var(--font-sans); }
.bt-btns { display: flex; gap: 8px; margin: 0; }
.bt-btns span { padding: 8px 14px; border-radius: var(--radius-pill); background: #e9b44c; color: #1c2b4a; font: 600 12px/1 var(--font-sans); }
.bt-btns .is-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 50%, transparent); }
.bt-wires { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.bt-wires li { display: grid; gap: 4px; padding: 8px; border-radius: var(--radius-12); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.bt-wires li.is-picked { box-shadow: inset 0 0 0 1.5px var(--os-blue); background: color-mix(in srgb, var(--os-blue) 16%, transparent); }
.bt-wires span { color: var(--ink-3); font: 600 11px/1 var(--font-sans); }
.bt-wires i { display: block; height: 14px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.bt-wires i + i { height: 6px; width: 70%; }
.bt-parts { flex: 1; grid-auto-rows: 1fr; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-10); margin: var(--space-12) 0 0; padding: 0; list-style: none; }
.bt-parts li { display: grid; justify-items: center; align-content: center; gap: 8px; padding: var(--space-20) 8px; border-radius: var(--radius-16); background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); font: 500 13px/1.3 var(--font-sans); text-align: center; }
.bt-parts .w3-ic { color: var(--os-sky, #7cc4ff); }
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "brief brief" "system options" "system test" "build build" "live care"; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "brief" "system" "options" "build" "test" "live" "care"; gap: var(--space-12); }
  .bt { padding: var(--space-20); }
  .bt-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.home-steps-more { margin-top: var(--space-36); }
.value-give { margin: var(--space-14) 14px 0; color: var(--ink); font: 500 15px/1.4 var(--font-sans); }
.value-give span { display: block; margin-bottom: 2px; color: var(--ink-3); font: 600 11px/1.4 var(--font-sans); letter-spacing: .06em; }

/* ---------- work: pinned stage ---------- */
/* 80vh of scroll per tab, the system's 240vh for three scaled to four */
.work-rail { width: 100%; height: calc(var(--steps) * 80vh); }
.work-pin { position: sticky; top: max(96px, calc(50vh - 300px)); display: grid; justify-items: center; }
.work .w3-sticky, #work .w3-sticky { grid-template-columns: 250px minmax(0, 760px); gap: var(--space-56); width: min(100%, 1066px); }
#work .w3-panel-cap h3 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-10); }
#work .w3-panel-cap p { max-width: 40rem; }

/* "other work" on the home page: a few pins of /work's wall, fading into a button */
.home-wall { position: relative; width: min(100%, 1240px); margin-top: var(--space-96); }
.more-title { margin: 0 0 var(--space-16); color: var(--ink-3); font: 600 11px/1.4 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; }
.home-wall .pins { columns: 4 200px; max-height: 960px; overflow: hidden; margin-top: 0;
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.home-wall-cta { position: absolute; inset: auto 0 var(--space-40); display: flex; justify-content: center; }
@media (max-width: 640px) {
  .home-wall .pins { --gap: 10px; columns: 2; max-height: 720px; }
  .home-wall .pin:nth-child(n+9) { display: none; }
}

/* ---------- services: plan cards ---------- */
.plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-20);
  width: min(100%, 1392px); align-items: stretch;
}
.plans .w3-plan { width: auto; padding: var(--space-40) var(--space-24) var(--space-24); }
.plans .w3-plan-price { font-size: clamp(38px, 3.3vw, 52px); }
.plans .w3-plan-points { flex: 1; align-content: start; }
.plans .w3-btn.is-outline { height: 50px; padding: 0 28px; font-size: 16px; }
.plan-desc { min-height: 3.3em; margin: var(--space-10) 0 0; color: var(--ink-2); font: 400 15px/1.65 var(--font-sans); text-wrap: pretty; }
.plan-from { margin: var(--space-20) 0 0; color: var(--ink-3); font: 500 13px/1 var(--font-sans); }
.plan-pages { margin: var(--space-20) 0 0; color: var(--ink-2); font: 500 15px/1.4 var(--font-sans); }

/* ---------- estimator ---------- */
.estimate { display: grid; justify-items: center; gap: var(--space-20); width: 100%; }
.estimate .w3-try-hint { rotate: -4deg; }
.est-types { justify-content: flex-start; margin-top: var(--space-14); }
.est-types .w3-ftab[aria-checked="true"] { background: var(--btn); color: var(--on-btn); }
.est-sub { margin-top: var(--space-24); }
.est-name { font-size: 22px; line-height: 1.35; }
.w3-try-row .w3-chip { font-variant-numeric: tabular-nums; }

/* ---------- reviews: the wall from C9 ----------
   Same structure and motion as C9: three columns looping at three speeds,
   the hovered column holds still. C9's tokens are swapped for the system's:
   card and line for the boxes, type-amber for the stars (gold is reserved for
   dark bands and fails contrast on white), exp for the avatar. */
.reviews { width: min(100%, 1180px); }
.revwall-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-16); margin-bottom: var(--space-24); }
.rev-score { color: var(--ink); font: 700 56px/1 var(--font-sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.rev-stars { color: var(--type-amber-ink); font-size: 16px; letter-spacing: .12em; }
.rev-count { color: var(--ink-2); font: 400 15px/1.4 var(--font-sans); }
.rev-src { margin-left: auto; color: var(--ink-3); font: 600 11px/1.4 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; }
/* the four sub-scores FASTWORK shows under the overall rating */
.rev-sub {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8);
  margin: calc(-1 * var(--space-8)) 0 var(--space-24); padding: 0; list-style: none;
}
.rev-sub li {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-8);
  padding: 10px 14px; border-radius: var(--radius-14); background: var(--card);
  color: var(--ink-2); font: 400 14px/1.35 var(--font-sans);
}
.rev-sub b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .rev-sub { grid-template-columns: 1fr 1fr; } }

.revwall {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-16);
  height: clamp(26rem, 64vh, 40rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 88%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 88%, transparent);
}
.revcol { display: flex; flex-direction: column; gap: var(--space-16); will-change: transform; }
.revcard {
  margin: 0; display: flex; flex-direction: column; gap: var(--space-12);
  padding: var(--space-20); border-radius: var(--radius-16);
  background: var(--card); box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow var(--dur-hover) var(--ease-hover);
}
.revcard:hover { box-shadow: var(--shadow-ring); }
.revcard blockquote { margin: 0; color: var(--ink); font: 400 15px/1.75 var(--font-sans); }
.revcard figcaption { display: flex; align-items: center; gap: var(--space-8); color: var(--ink-3); font: 400 12px/1.4 var(--font-sans); }
.revcard .av {
  width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%;
  background: var(--exp-bg); color: var(--exp-ink); font: 700 11px/1 var(--font-sans); text-transform: uppercase;
}
.revcard .who { color: var(--ink-2); font-weight: 600; }
.revcard .score { margin-left: auto; color: var(--type-amber-ink); font-weight: 600; white-space: nowrap; }

.revwall-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-16); margin: var(--space-20) 0 0; color: var(--ink-2); font: 400 14px/1.5 var(--font-sans); }
.revwall-foot .hint { color: var(--ink-3); font: 600 11px/1.4 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; }

@media (max-width: 820px) {
  .revwall { grid-template-columns: repeat(2, minmax(0, 1fr)); height: clamp(24rem, 70vh, 34rem); }
  .revcol:nth-child(3) { display: none; }
}
@media (max-width: 520px) {
  .revwall { grid-template-columns: 1fr; }
  .revcol:nth-child(2) { display: none; }
  .rev-src { margin-left: 0; }
}
/* reduced motion: the same reviews as an ordinary list, nothing hidden */
@media (prefers-reduced-motion: reduce) {
  .revwall { height: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- footer ---------- */
/* ---------- the six areas (wheel) ---------- */
.areas {
  display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 480px); justify-content: center; align-items: center;
  gap: var(--space-72); width: min(100%, 1066px);
}
.area-wheel-col { display: grid; justify-items: center; gap: var(--space-28); }
.areas .w3-wheel { width: min(100%, 380px); }
.w3-wheel-center { display: grid; place-items: center; }
.area-icon { display: grid; place-items: center; color: color-mix(in srgb, var(--area) 70%, var(--ink)); transition: color .9s var(--ease-ui); }
/* the system positions every svg inside a wheel absolutely, for the ring;
   the icon in the hub is not the ring */
.w3-wheel .area-icon svg { position: static; inset: auto; }
.area-icon[hidden] { display: none; }
.area-picks { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-8); }
.area-pick {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 0; border-radius: var(--radius-pill);
  background: var(--bg-soft); color: var(--ink-2); font: 500 14px/1.2 var(--font-sans); cursor: pointer;
  transition: background-color var(--dur-hover) var(--ease-hover), color var(--dur-hover) var(--ease-hover), box-shadow var(--dur-hover) var(--ease-hover);
}
.area-pick .w3-ic { color: color-mix(in srgb, var(--a) 70%, var(--ink)); }
.area-pick:hover { color: var(--ink); }
.area-pick[aria-selected="true"] { background: color-mix(in srgb, var(--a) 22%, var(--card)); color: var(--ink); box-shadow: 0 0 0 1px color-mix(in srgb, var(--a) 55%, transparent); }
.area-details { display: grid; }
.area-detail { grid-area: 1 / 1; }
.area-detail[data-active="false"] { visibility: hidden; opacity: 0; }
.area-detail[data-active="true"] { animation: area-in var(--dur-swap) var(--ease-ui); }
@keyframes area-in { from { opacity: 0; transform: translateY(14px); } }
.area-kind {
  display: flex; align-items: center; gap: 8px; margin: 0;
  color: color-mix(in srgb, var(--area) 65%, var(--ink)); font: 600 13px/1.4 var(--font-sans); letter-spacing: .06em;
}
.area-title { margin: var(--space-10) 0 0; color: var(--ink); font: 600 44px/1.15 var(--font-sans); letter-spacing: -.02em; }
.area-body { margin: var(--space-14) 0 0; color: var(--ink-2); font: 400 17px/1.6 var(--font-sans); text-wrap: pretty; }
.area-cards { display: grid; gap: var(--space-10); margin-top: var(--space-24); }
.area-card-text { flex: 1; }
.area-chip {
  flex-shrink: 0; padding: 3px 10px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--area) 18%, var(--card)); color: color-mix(in srgb, var(--area) 62%, var(--ink));
  font: 600 12px/1.4 var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ---------- every device ---------- */
#devices .w3-devices { width: min(100%, 1100px); }
.devices-cap { margin: var(--space-28) 0 0; color: var(--ink-3); font: 400 13px/1.4 var(--font-sans); }
.perks { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-10); margin: var(--space-24) 0 0; padding: 0; list-style: none; }
.help-note { width: min(100%, 760px); box-sizing: border-box; margin-top: var(--space-24); }
.w3-help p { margin: 0; }

/* ---------- the featured card that closes the page ---------- */
.consult { display: grid; justify-items: center; gap: var(--space-24); width: 100%; margin-top: var(--space-48); }
.consult-card { width: min(100%, 580px); padding: var(--space-48) var(--space-40) var(--space-40); }
.consult-card .plan-desc { min-height: 0; margin-top: var(--space-12); }
.consult-card .w3-cta { margin-top: var(--space-28); }
.consult-sub { margin: 0; color: var(--ink-2); font: 400 15px/1.6 var(--font-sans); text-align: center; }
.consult-sub a { color: var(--ink); text-underline-offset: 3px; }
.todo-tag {
  display: inline-block; margin-top: var(--space-10); padding: 2px 10px;
  border: 1px dashed var(--ink-3); border-radius: var(--radius-pill);
  color: var(--ink-3); font: 500 12px/1.4 var(--font-sans); font-style: normal;
}
.consult-sub .todo-tag { margin: 0 0 0 4px; }
.colophon {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-12);
  width: min(100%, 1392px); margin-top: var(--space-112); padding-top: var(--space-24);
  border-top: 1px solid var(--line);
  color: var(--ink-3); font: 400 13px/1.4 var(--font-sans);
}
.colo-brand { display: inline-flex; align-items: center; gap: var(--space-8); color: var(--ink); font: 600 15px/1 var(--font-sans); }

/* ---------- FAQ: native details, styled (shared by the SEO and service pages) ---------- */
.faq { display: grid; gap: var(--space-10); width: min(100%, 820px); }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-20); background: var(--card); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-16);
  padding: var(--space-20) var(--space-24); cursor: pointer; list-style: none;
  color: var(--ink); font: 500 18px/1.4 var(--font-sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  rotate: 45deg; translate: 0 -3px; transition: rotate var(--dur-hover) var(--ease-hover), translate var(--dur-hover) var(--ease-hover);
}
.faq details[open] summary::after { rotate: -135deg; translate: 0 3px; }
.faq summary:focus-visible { outline: 2px solid var(--os-blue); outline-offset: -2px; border-radius: var(--radius-20); }
.faq details p, .faq .faq-a { margin: 0; padding: 0 var(--space-24) var(--space-24); color: var(--ink-2); font: 400 16px/1.75 var(--font-sans); }
.faq .todo-tag { margin: 0 0 0 4px; }

.faq .faq-a p { margin: 0 0 var(--space-12); padding: 0; }
.faq .faq-a p:last-child, .faq .faq-a ol:last-child, .faq .faq-a ul:last-child { margin-bottom: 0; }
.faq .faq-a ol, .faq .faq-a ul { display: grid; gap: 6px; margin: 0 0 var(--space-12); padding-left: 1.3em; }
.faq .faq-a b { color: var(--ink); font-weight: 600; }
.faq .faq-note { color: var(--ink-3); font-size: 14px; }

/* ---------- shared site header (tools/site_chrome.py) ---------- */
.site-nav .w3-nav { position: relative; }
.w3-nav-link[aria-current="page"], .w3-nav-link[data-current] { background: var(--line); }
/* The mega menu spans the whole header, so it is placed against .w3-nav, not
   the "บริการ" button. The pill's backdrop-filter would capture it as its
   containing block, so the pill drops its blur while the menu is open. */
.nav-drop { position: static; }
.site-nav .w3-pill:has(> .nav-drop[open]) { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--glass-bar, var(--glass)); }
.nav-drop summary, .nav-mobile summary { list-style: none; cursor: pointer; }
.nav-drop summary::-webkit-details-marker, .nav-mobile summary::-webkit-details-marker { display: none; }
.nav-drop summary { gap: 4px; }
.nav-chev { transition: rotate var(--dur-hover) var(--ease-hover); }
.nav-drop[open] .nav-chev { rotate: 180deg; }
.nav-panel, .nav-sheet {
  display: grid; gap: 2px; padding: var(--space-8);
  border: 1px solid var(--line); border-radius: var(--radius-24); background: var(--card);
  /* not --shadow-panel: its 8px light ring turns into a white frame over dark bands */
  box-shadow: 0 2px 6px #0f172a14, 0 22px 50px #0f172a2e;
}
/* ----- mega menu: four services with a picture each, SEO as a strip below ----- */
.nav-panel.mega {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 2;
  gap: var(--space-14); padding: var(--space-20); border-radius: var(--radius-28);
}
.mega-head { margin: 0 4px; color: var(--ink-3); font: 600 11px/1.4 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-10); }
.mega-card {
  display: grid; align-content: start; gap: 4px; padding: 8px 8px 14px; border-radius: var(--radius-20);
  color: var(--ink); text-decoration: none; transition: background-color var(--dur-hover) var(--ease-hover);
}
.mega-card:hover, .mega-card:focus-visible { background: var(--bg-soft); outline: none; }
.mega-card[aria-current="page"] { background: color-mix(in srgb, var(--os-blue) 12%, transparent); }
.mega-pic {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%;
  margin-bottom: 8px; border-radius: var(--radius-14); background: var(--bg-soft);
  transition: scale .5s var(--ease-ui, ease);
}
.mega-card:hover .mega-pic { scale: 1.02; }
.mega-card b, .mega-seo b { padding: 0 4px; font: 600 15px/1.35 var(--font-sans); }
.mega-card > span, .mega-seo b + span { padding: 0 4px; color: var(--ink-3); font: 400 13px/1.5 var(--font-sans); text-wrap: pretty; }
.mega-foot { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: var(--space-10); align-items: stretch; }
.mega-strips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-10); }
.mega-seo {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-14);
  padding: var(--space-14) var(--space-16); border-radius: var(--radius-20);
  background: linear-gradient(110deg, color-mix(in srgb, var(--g1) 22%, var(--card)), color-mix(in srgb, var(--g3) 16%, var(--card)));
  color: var(--ink); text-decoration: none; transition: filter var(--dur-hover) var(--ease-hover);
}
.mega-seo:hover, .mega-seo:focus-visible { filter: saturate(1.4); outline: none; }
.mega-seo[aria-current="page"] { box-shadow: inset 0 0 0 1.5px var(--os-blue); }
.mega-seo > span:nth-child(2) { display: grid; gap: 2px; }
.mega-seo b, .mega-seo b + span { padding: 0; }
.mega-ic {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-14);
  background: var(--card); color: var(--os-blue); box-shadow: var(--shadow-sm);
}
.mega-links { display: grid; align-content: center; gap: 4px; }
.mega-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: var(--radius-14);
  color: var(--ink); font: 500 14px/1.3 var(--font-sans); text-decoration: none;
}
.mega-links a:hover, .mega-links a:focus-visible { background: var(--bg-soft); outline: none; }
.mega-links .w3-ic, .mega-seo > .w3-ic { color: var(--ink-3); }

/* phone sheet: the same services, with a small picture and the one-line description */
.nav-item.has-pic { grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 10px; }
.nav-item.has-pic > span { display: grid; gap: 2px; }
.nav-pic {
  width: 52px; height: 52px; object-fit: cover; object-position: center 30%;
  border-radius: var(--radius-12); background: var(--bg-soft);
}
.nav-pic.is-seo { display: grid; place-items: center; color: var(--os-blue); background: color-mix(in srgb, var(--g1) 24%, var(--card)); }
.nav-item {
  display: grid; gap: 2px; padding: 10px 14px; border-radius: var(--radius-16);
  color: var(--ink); text-decoration: none;
}
.nav-item:hover, .nav-item:focus-visible { background: var(--bg-soft); outline: none; }
.nav-item[aria-current="page"] { background: color-mix(in srgb, var(--os-blue) 14%, transparent); }
.nav-item b { font: 600 15px/1.35 var(--font-sans); }
.nav-item span { color: var(--ink-3); font: 400 13px/1.35 var(--font-sans); }
.nav-mobile { display: none; }
.nav-burger {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--ink);
}
.nav-burger:hover { background: var(--line); }
.nav-mobile[open] .nav-burger { background: var(--line); }
/* The pill's backdrop-filter makes it the containing block, so the sheet is
   anchored to the pill's right edge and sized to the whole header instead. */
.nav-sheet {
  position: absolute; top: calc(100% + 18px); right: -8px; width: min(984px, calc(100vw - 32px)); box-sizing: border-box;
  max-height: calc(100svh - 110px); overflow-y: auto; overscroll-behavior: contain;
}
.nav-group { margin: var(--space-8) 14px 2px; color: var(--ink-3); font: 600 11px/1.4 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; }
.w3-nav summary:focus-visible { outline: 2px solid var(--os-blue); outline-offset: 2px; }
@media (max-width: 900px) {
  .w3-nav-link, .nav-drop { display: none; }
  .nav-mobile { display: block; }
  /* no room for the morph: the button is there from the start */
  .w3-nav .w3-nav-cta { max-width: none; opacity: 1; clip-path: none; }
}

/* ---------- shared site footer (tools/site_chrome.py) ---------- */
.closing { align-items: center; }
.closing-fw { display: block; width: 160px; margin-top: var(--space-8); border-radius: 50%; transition: scale var(--dur-hover) var(--ease-hover); }
.closing-fw:hover { scale: 1.04; }
.closing-fw img { display: block; width: 100%; height: auto; }
.closing .plan-desc { margin-top: var(--space-20); }

.site-map {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-28);
  width: min(100%, 1000px); margin-top: var(--space-96);
}
.sm-head { margin: 0 0 var(--space-12); color: var(--ink-3); font: 600 12px/1.4 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
.site-map ul { display: grid; gap: var(--space-8); margin: 0; padding: 0; list-style: none; }
.site-map a { color: var(--ink-2); font: 400 15px/1.5 var(--font-sans); text-decoration: none; }
.site-map a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-map a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-map .todo-tag { margin: 0 0 0 4px; }
.site-map + .colophon { margin-top: var(--space-56); }
@media (max-width: 640px) {
  .site-map { grid-template-columns: 1fr 1fr; gap: var(--space-28) var(--space-16); margin-top: var(--space-72); }
  .site-map > div:first-child { grid-column: 1 / -1; }
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .areas { grid-template-columns: minmax(0, 1fr); gap: var(--space-40); }
  .area-details { width: min(100%, 520px); justify-self: center; }
}
@media (max-width: 760px) {
  .work-pin { top: 88px; }
}
@media (max-width: 640px) {
  .faq summary { font-size: 16px; padding: var(--space-16) var(--space-20); }
  .faq details p, .faq .faq-a { padding: 0 var(--space-20) var(--space-20); }

  .hero { padding: 120px var(--space-16) var(--space-140); gap: var(--space-40); }
  .hero .w3-h1 { font-size: 40px; }
  .hero .lead { font-size: 17px; }
  .hero-card { margin-inline: -44px; }
  .hero-card .w3-card { width: 168px; }
  html.js .hero:not(.is-calm) { padding-top: 104px; gap: var(--space-28); }
  .hero-me {
    height: min(58svh, 470px);
    --fade: linear-gradient(to bottom, #000 calc(100% - 180px), rgb(0 0 0 / .6) calc(100% - 135px),
            rgb(0 0 0 / .2) calc(100% - 95px), transparent calc(100% - 56px));
  }
  .float-card { width: 156px; }
  .fc-in { padding: var(--space-12) var(--space-14) var(--space-14); border-radius: var(--radius-18); }
  .fc-head { gap: 8px; }
  .fc-in .w3-wheel-card-icon { width: 28px; height: 28px; border-radius: 8px; }
  .fc-in .w3-wheel-card-icon .w3-ic { width: 14px; height: 14px; }
  .fc-in .w3-wheel-kind { font-size: 10px; }
  .fc-in .w3-wheel-title { font-size: 14px; }
  .fc-in .w3-plan-points { margin-top: var(--space-8); padding-top: var(--space-8); gap: 4px; }
  .fc-in .w3-plan-points li { gap: 5px; font-size: 12px; line-height: 1.4; }
  .fc-in .w3-plan-points .w3-ic { width: 12px; height: 12px; }
  .fc-brand { right: auto; left: 8px; top: 15%; }
  .fc-perf  { right: auto; left: 8px; top: 64%; }
  .fc-ux    { left: auto; right: 8px; top: 27%; }
  .band { padding: var(--space-96) var(--space-16) var(--space-140); border-radius: var(--radius-28) var(--radius-28) 0 0; }
  .band-end { padding-bottom: var(--space-24); }
  .w3-title { font-size: 28px; }
  #work .w3-sticky { grid-template-columns: minmax(0, 1fr); gap: var(--space-14); }
  #work .w3-sticky-tabs { flex-wrap: wrap; }
  .plans .w3-plan-price { font-size: 44px; }
  .area-title { font-size: 32px; }
  .consult-card { padding: var(--space-40) var(--space-20) var(--space-28); }
}

/* ---------- promo popup (home page) ---------- */
.promo {
  box-sizing: border-box; width: min(440px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: var(--space-36) var(--space-28) var(--space-28);
  border: 0; border-radius: var(--radius-32); background: var(--card); color: var(--ink); box-shadow: var(--shadow-plan);
  text-align: center; overflow: auto;
}
.promo[open] { display: grid; justify-items: center; gap: var(--space-12); animation: promo-in .45s var(--ease-out-expo, cubic-bezier(.16, 1, .3, 1)); }
.promo::backdrop { background: rgb(15 23 42 / .45); backdrop-filter: blur(4px); }
@keyframes promo-in { from { opacity: 0; translate: 0 16px; scale: .97; } }
.promo-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); cursor: pointer; }
.promo-x:hover { background: var(--line); color: var(--ink); }
.promo-x:focus-visible, .promo-copy:focus-visible, .promo-go:focus-visible { outline: 2px solid var(--os-blue); outline-offset: 2px; }
.promo-kicker { margin: 0; padding: 6px 14px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--g3) 14%, transparent); color: var(--ink); font: 600 13px/1.4 var(--font-sans); }
.promo-title { margin: var(--space-4) 0 0; font: 600 28px/1.35 var(--font-sans); text-wrap: balance; }
.promo-body { margin: 0; color: var(--ink-2); font: 400 15px/1.6 var(--font-sans); }
.promo-code { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); width: 100%; margin-top: var(--space-8);
  padding: 10px 10px 10px 20px; border: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent); border-radius: var(--radius-16); box-sizing: border-box; }
.promo-code code { font: 700 26px/1 var(--font-sans); letter-spacing: .12em; }
.promo-copy { border: 1px solid var(--line); }
.promo-terms { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 0; padding: 0; list-style: none; color: var(--ink-3); font: 500 13px/1.4 var(--font-sans); }
.promo-terms li::before { content: "• "; color: var(--g3); }
.promo-go { box-sizing: border-box; width: 100%; height: 48px; justify-content: center; margin-top: var(--space-4); font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .promo[open] { animation: none; } }

/* ---------- privacy notice ---------- */
.legal { padding-top: var(--space-56); }
.legal-body { display: grid; gap: var(--space-36); width: min(100%, 44rem); }
.legal-body h2 { margin: 0 0 var(--space-12); color: var(--ink); font: 600 22px/1.4 var(--font-sans); }
.legal-body p, .legal-body li { color: var(--ink-2); font: 400 16px/1.8 var(--font-sans); text-wrap: pretty; }
.legal-body p { margin: 0 0 var(--space-12); }
.legal-body ul { display: grid; gap: var(--space-8); margin: 0 0 var(--space-12); padding-left: 1.2em; }
.legal-body b { color: var(--ink); font-weight: 600; }
.legal-body a { color: var(--ink); text-underline-offset: 3px; }
.colophon a { color: inherit; text-underline-offset: 3px; }
