/* BUMBLE FIX — Theme F: Sketchbook (built on Themes B + C)
   Layout idea: big yellow and black bands like painted factory floor markings, a safety-stripe
   seam under the hero, soft rounded "machine part" cards, and one friendly geometric face.
   Fonts: Prompt (headings) + Noto Sans Thai (text), with system Thai fonts as fallbacks. */

:root {
  --yellow: #F5C400;
  --ink: #171717;
  --paper: #F7F6F0;
  --mint: #A7D9D1;
  --orange: #F28B52;
  --white: #FFFFFF;
  --muted: #55524B;
  --muted-on-dark: #CFCBBF;
  --rule: #E3DFD3;
  --tint-y: #FFF1B3;
  --tint-m: #DDF1EE;
  --tint-o: #FCE3D5;

  --thai-fallback: 'Leelawadee UI', 'Thonburi', 'Sukhumvit Set', 'Noto Sans Thai', Tahoma, sans-serif;
  --display: 'Prompt', var(--thai-fallback);
  --body: 'Noto Sans Thai', var(--thai-fallback);
  --mono: 'Prompt', var(--thai-fallback);

  --radius: 24px;
  --wrap: 1200px;
  --header-h: 72px;
  --lift: 0 18px 40px rgba(23, 23, 23, 0.12);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.7; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:lang(th) h1, :lang(th) h2, :lang(th) h3 { line-height: 1.35; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
section[id], main [id] { scroll-margin-top: calc(var(--header-h) + 12px); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--yellow); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 12px 26px;
  border: 0; border-radius: 999px;
  font: 600 1rem/1.2 var(--display); text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn .ico-arrow { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .ico-arrow { transform: translateX(3px); }
.btn--primary { background: var(--ink); color: var(--yellow); }
.btn--primary:hover { box-shadow: 0 10px 22px rgba(23, 23, 23, .25); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--white); }
.btn--dark { background: var(--ink); color: var(--yellow); }
.btn--sm { min-height: 44px; padding: 8px 20px; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(23, 23, 23, .08); }
.site-header__bar { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 40px; height: 36px; flex: none; }
.brand__word { font: 700 1.3rem/1 var(--display); letter-spacing: .02em; }
.brand__word b { background: var(--yellow); color: var(--ink); padding: 3px 8px 2px; margin-left: 4px; border-radius: 999px; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav__links { display: flex; gap: 2px; list-style: none; }
.site-nav__links a { display: block; padding: 8px 14px; border-radius: 999px; font: 500 .98rem/1.3 var(--display); text-decoration: none; }
.site-nav__links a:hover { background: var(--tint-y); }
.site-nav__links a.is-active { background: var(--yellow); }
.site-nav__end { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; gap: 2px; padding: 3px; background: var(--paper); border-radius: 999px; font: 600 .85rem/1 var(--display); }
.lang__item { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 38px; padding: 0 10px; border-radius: 999px; text-decoration: none; }
.lang__item.is-current { background: var(--ink); color: var(--yellow); }
.lang a.lang__item:hover { background: var(--tint-y); }
.nav-toggle { display: none; }

/* ---------- Section heads ---------- */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec-head { display: grid; gap: 14px; max-width: 780px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-label { display: inline-flex; align-items: center; gap: 10px; font: 600 .9rem/1 var(--display); letter-spacing: .04em; }
.sec-label__num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: .8rem; }
.sec-title { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 700; line-height: 1.15; }
.sec-lead { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }
.tag { display: inline-block; font: 600 .74rem/1 var(--display); letter-spacing: .08em; padding: 7px 12px; border-radius: 999px; background: var(--tint-m); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--yellow); padding-block: clamp(48px, 7vw, 96px) clamp(72px, 9vw, 120px); }
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 18px;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 18px, var(--yellow) 18px 36px);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero__copy { display: grid; gap: 24px; justify-items: start; }
.hero__eyebrow { font: 600 .82rem/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--yellow); border-radius: 999px; padding: 8px 16px; }
.hero__title { font-size: clamp(3rem, 7vw, 6rem); font-weight: 700; line-height: .98; letter-spacing: -.02em; text-transform: uppercase; }
.hero__title:lang(th) { text-transform: none; font-size: clamp(2.2rem, 4.9vw, 4.1rem); line-height: 1.28; letter-spacing: 0; }
.hero__title mark { color: var(--yellow); background: var(--ink); padding: 0 .18em; border-radius: .4em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34ch; color: #2B2923; }
.hero__services { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.hero__services li { font: 600 .85rem/1 var(--display); letter-spacing: .08em; padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--ink); }
.hero__services li:nth-child(2) { background: var(--white); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.hero .btn--ghost:hover { background: var(--white); }
.hero__figure { position: relative; margin: 0; background: var(--white); border-radius: 36px; padding: clamp(18px, 2.6vw, 32px); box-shadow: 0 30px 60px rgba(23, 23, 23, .18); transform: rotate(-1.2deg); }
.hero__figure::before {
  content: 'Typical dust control line';
  position: absolute; top: -14px; left: 28px;
  font: 600 .72rem/1 var(--display); letter-spacing: .1em;
  background: var(--orange); color: var(--ink); padding: 8px 12px; border-radius: 999px;
}
.hero-art { width: 100%; height: auto; display: block; overflow: visible; transform: rotate(1.2deg); }
.hero-callout__text { font: 600 17px var(--display); letter-spacing: .04em; fill: var(--ink); }
.hero-callout__num { fill: var(--ink); font-weight: 700; }
.hero-part { animation: part-drop .7s cubic-bezier(.2, .9, .3, 1.25) both; animation-delay: calc(var(--d) * 90ms + 150ms); transform-box: fill-box; }
.hero-fan { animation: fan-spin 1.2s linear infinite; }
.hero-puff { transform-box: fill-box; transform-origin: center; animation: puff 3.6s ease-out infinite; animation-delay: calc(var(--i) * -0.9s); }
@keyframes part-drop { from { transform: translateY(-22px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fan-spin { to { stroke-dashoffset: -22; } }
@keyframes puff { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: .95; } 100% { transform: translateY(-80px) translateX(14px) scale(1.25); opacity: 0; } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.about__text { display: grid; gap: 32px; }
.about__body { font-size: 1.2rem; max-width: 58ch; }
.about__quote { margin: 0; position: relative; padding: 8px 0 0 64px; }
.about__quote::before { content: '“'; position: absolute; left: 0; top: -12px; font: 700 5.5rem/1 var(--display); color: var(--orange); }
.about__quote p { font: 600 clamp(1.3rem, 2.2vw, 1.7rem)/1.45 var(--display); }
.about__factors { background: var(--white); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.about__factors-title { font-size: 1.15rem; margin-bottom: 18px; }
.factor-list { list-style: none; display: grid; gap: 4px; }
.factor { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.factor:last-child { border-bottom: 0; }
.factor__n { grid-row: span 2; width: 48px; height: 48px; display: grid; place-items: center; background: var(--tint-y); border-radius: 16px; font: 700 1.05rem/1 var(--display); }
.factor:nth-child(2) .factor__n { background: var(--tint-m); }
.factor:nth-child(3) .factor__n { background: var(--tint-o); }
.factor:nth-child(4) .factor__n { background: var(--yellow); }
.factor__name { font: 600 1.1rem/1.3 var(--display); }
.factor__desc { color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* ---------- Systems ---------- */
.filter { display: grid; gap: 12px; margin-bottom: 32px; }
.filter__label { font: 600 .9rem/1 var(--display); }
.filter__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--rule); font: 500 .98rem/1.2 var(--display); color: var(--ink); cursor: pointer; transition: background-color .15s ease, box-shadow .15s ease; }
.chip:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--yellow); box-shadow: none; }
.filter__status { font: 500 .9rem/1.3 var(--display); color: var(--muted); min-height: 1.3em; }

.sys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.sys-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 14px 14px 20px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: inset 0 0 0 1.5px var(--rule);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.2), box-shadow .25s ease, opacity .25s ease, filter .25s ease;
}
.sys-card > :not(.sys-card__art) { margin-inline: 6px; }
.sys-card:hover, .sys-card:focus-within { transform: translateY(-6px); box-shadow: inset 0 0 0 2px var(--ink), var(--lift); }
.sys-card.is-dim { opacity: .35; filter: grayscale(1); }
.sys-card__art { aspect-ratio: 200 / 140; margin-bottom: 8px; background: var(--tint-y); border-radius: 18px; display: grid; place-items: center; padding: 12px 18px; }
.sys-card:nth-child(3n + 2) .sys-card__art { background: var(--tint-m); }
.sys-card:nth-child(3n + 3) .sys-card__art { background: var(--tint-o); }
.sys-art { width: 100%; height: 100%; overflow: visible; }
.sys-card__code { font: 600 .74rem/1 var(--display); letter-spacing: .12em; color: var(--muted); }
.sys-card__name { font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.sys-card__alt { font-size: .92rem; color: var(--muted); }
.sys-card__desc { font-size: .97rem; line-height: 1.6; }
.sys-card__tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-top: 4px; }
.sys-card__tags li { font-size: .78rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--paper); }
.sys-card__more { margin-top: auto; padding-top: 10px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; background: none; border: 0; padding-inline: 0; cursor: pointer; font: 600 .95rem/1 var(--display); color: var(--ink); }
.sys-card__more .ico-arrow { width: 30px; height: 30px; padding: 6px; background: var(--yellow); border-radius: 50%; transition: transform .2s ease, background-color .2s ease; }
.sys-card__more::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.sys-card:hover .sys-card__more .ico-arrow { transform: translateX(4px); background: var(--ink); color: var(--yellow); }
.sys-card--ask { background: var(--ink); color: var(--white); box-shadow: none; justify-content: space-between; padding: 24px 22px; }
.sys-card--ask h3 { font-size: 1.6rem; color: var(--yellow); }
.sys-card--ask .sys-card__code { color: var(--muted-on-dark); }
.sys-card--ask .sys-card__desc { color: var(--muted-on-dark); }
.sys-card--ask .btn { background: var(--yellow); color: var(--ink); align-self: flex-start; }

.sys-art g[class^="a-"] { transform-box: fill-box; transform-origin: center; }
.sys-card:hover .a-flow path, .sys-card:focus-within .a-flow path { animation: dash 1s linear infinite; }
.sys-card:hover .a-drop, .sys-card:focus-within .a-drop { animation: drop 1s ease-in infinite; }
.sys-card:hover .a-shake, .sys-card:focus-within .a-shake { animation: shake .35s ease-in-out infinite; }
.sys-card:hover .a-pulse, .sys-card:focus-within .a-pulse { animation: blink .6s steps(2) infinite; }
.sys-card:hover .a-drip, .sys-card:focus-within .a-drip { animation: drip .9s ease-in infinite; }
.sys-card:hover .a-bob, .sys-card:focus-within .a-bob { animation: bob 1.2s ease-in-out infinite; }
.sys-card:hover .a-rise, .sys-card:focus-within .a-rise { animation: rise 1.1s ease-out infinite; }
.sys-card:hover .a-spin, .sys-card:focus-within .a-spin { animation: spin 1s linear infinite; transform-box: view-box; }
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes drop { from { transform: translateY(-6px); opacity: 0; } 40% { opacity: 1; } to { transform: translateY(10px); opacity: 0; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes drip { from { transform: translateY(0); opacity: 1; } to { transform: translateY(22px); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-5px); } }
@keyframes rise { from { transform: translateY(8px); opacity: .2; } to { transform: translateY(-6px); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

.sys-dialog { width: min(820px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 32px; background: var(--white); color: var(--ink); box-shadow: 0 40px 80px rgba(0, 0, 0, .3); }
.sys-dialog::backdrop { background: rgba(23, 23, 23, .6); }
.sys-dialog[open] { animation: pop .25s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { transform: translateY(16px) scale(.97); opacity: 0; } }
.sys-dialog__inner { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.sys-dialog__art { background: var(--yellow); display: grid; place-items: center; padding: 32px; }
.sys-dialog__body { display: grid; gap: 10px; padding: 36px 30px 30px; align-content: start; }
.sys-dialog__title { font-size: 1.8rem; line-height: 1.2; }
.sys-dialog__body h4 { font: 600 .85rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; margin-top: 12px; color: var(--muted); }
.sys-dialog__note { font-size: .93rem; color: var(--muted); background: var(--paper); border-radius: 16px; padding: 14px 16px; margin-top: 8px; }
.sys-dialog__body .btn { justify-self: start; margin-top: 8px; }
.sys-dialog__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); font: 600 1.5rem/1 var(--body); cursor: pointer; z-index: 1; }
.sys-dialog__close:hover { background: var(--ink); color: var(--yellow); }

/* ---------- Services ---------- */
.services { background: var(--yellow); }
.services .sec-label__num { background: var(--ink); color: var(--yellow); }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc-card { display: grid; gap: 14px; align-content: start; padding: clamp(26px, 3vw, 36px); background: var(--ink); color: var(--white); border-radius: 28px; transition: transform .25s cubic-bezier(.2, .9, .3, 1.2); }
.svc-card:hover { transform: translateY(-6px) rotate(-.6deg); }
.svc-card__num { font: 600 .85rem/1 var(--display); color: var(--mint); letter-spacing: .1em; }
.svc-card__key { font: 700 clamp(1.6rem, 2.7vw, 2.3rem)/1.05 var(--display); color: var(--yellow); white-space: nowrap; letter-spacing: -.01em; }
.svc-card__title { font-size: 1.25rem; color: var(--white); font-weight: 500; }
.svc-card__list { list-style: none; display: grid; gap: 10px; padding-top: 6px; border-top: 1px solid #3A3A3A; }
.svc-card__list li { position: relative; padding-left: 24px; color: var(--muted-on-dark); line-height: 1.55; padding-top: 6px; }
.svc-card__list li::before { content: ''; position: absolute; left: 0; top: calc(.55em + 6px); width: 10px; height: 10px; background: var(--yellow); border-radius: 50%; }

/* ---------- Process ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; position: relative; }
.steps::before { content: ''; position: absolute; left: 6%; right: 6%; top: 42px; height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--ink) 0 22px, transparent 22px 34px); z-index: -1; }
.step { display: grid; gap: 8px; justify-items: start; }
.step__icon { width: 88px; height: 88px; display: grid; place-items: center; background: var(--tint-y); border-radius: 28px; transition: transform .3s cubic-bezier(.2, .9, .3, 1.3), background-color .3s ease; }
.step:nth-child(2) .step__icon { background: var(--tint-m); }
.step:nth-child(3) .step__icon { background: var(--tint-o); }
.step:nth-child(4) .step__icon { background: var(--tint-m); }
.step:nth-child(5) .step__icon { background: var(--yellow); }
.step-icon { width: 48px; height: 48px; }
.step.is-on .step__icon { transform: translateY(-6px) rotate(-4deg); }
.step__n { font: 600 .78rem/1 var(--display); letter-spacing: .12em; color: var(--muted); margin-top: 10px; }
.step__title { font-size: 1.2rem; line-height: 1.3; }
.step__desc { font-size: .95rem; color: var(--muted); line-height: 1.55; }

/* ---------- Projects + knowledge ---------- */
.projects { background: var(--white); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.proj-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.proj-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.proj-card__slot { aspect-ratio: 16 / 10; display: grid; place-items: center; margin: 12px; border-radius: 18px; border: 2px dashed #BDB8AA; background: var(--tint-m); }
.proj-card:nth-child(2) .proj-card__slot { background: var(--tint-y); }
.proj-card:nth-child(3) .proj-card__slot { background: var(--tint-o); }
.proj-card__slot span { font: 600 .8rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; background: var(--white); padding: 9px 14px; border-radius: 999px; }
.proj-card__body { display: grid; gap: 8px; padding: 8px 22px 24px; justify-items: start; }
.proj-card__title { font-size: 1.2rem; }
.proj-card__meta { color: var(--muted); font-size: .95rem; }

.art-card { display: grid; gap: 12px; align-content: start; justify-items: start; padding: 26px; background: var(--white); border-radius: var(--radius); text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--rule); }
a.art-card:hover { box-shadow: inset 0 0 0 2px var(--ink), var(--lift); }
.art-card__title { font-size: 1.3rem; line-height: 1.35; }
.art-card__status { display: inline-flex; align-items: center; gap: 6px; font: 600 .8rem/1 var(--display); letter-spacing: .06em; padding: 8px 12px; border-radius: 999px; background: var(--paper); color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--white); }
.contact .sec-title { color: var(--white); }
.contact .sec-lead { color: var(--muted-on-dark); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__list { display: grid; gap: 10px; margin: 0; }
.contact__list > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 16px 18px; background: #232323; border-radius: 18px; }
.contact__list dt { font: 600 .85rem/1.6 var(--display); color: var(--yellow); }
.contact__list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.quote-form { display: grid; gap: 16px; padding: clamp(24px, 3vw, 36px); background: var(--white); color: var(--ink); border-radius: 32px; }
.quote-form__title { font-size: 1.5rem; }
.quote-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font: 500 .95rem/1.4 var(--display); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); border-radius: 14px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 0; border-color: var(--ink); }
.quote-form .btn { justify-self: start; }
.quote-form__msg { font-size: .95rem; font-weight: 500; }
.quote-form__msg.is-shown { padding: 12px 16px; border-radius: 14px; background: var(--tint-m); }
.quote-form__msg.is-error { background: var(--tint-o); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding-block: 8px 56px; }
.title-block { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 10px; }
.title-block__brand { grid-row: span 3; display: grid; gap: 10px; align-content: center; padding: 24px; background: #232323; border-radius: 22px; }
.title-block__brand p { font: 500 .9rem/1.4 var(--display); color: var(--muted-on-dark); }
.brand--light .brand__word { color: var(--white); }
.brand--light .logo-mark path:nth-child(2) { fill: var(--white); }
.title-block__cell { display: grid; gap: 6px; align-content: start; padding: 16px 18px; background: #232323; border-radius: 18px; }
.title-block__k { font: 600 .7rem/1 var(--display); letter-spacing: .12em; color: var(--muted-on-dark); }
.title-block__v { font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.title-block__cell--rev { grid-column: 2 / -1; background: var(--yellow); color: var(--ink); }
.title-block__cell--rev .title-block__k { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) { .site-nav__links a { padding: 8px 10px; font-size: .92rem; } }
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--yellow); font: 600 .95rem/1 var(--display); color: var(--ink); cursor: pointer; }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .2s ease; border-radius: 2px; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px clamp(16px, 4vw, 32px) 24px; background: var(--white); border-bottom: 1px solid var(--rule); box-shadow: 0 16px 30px rgba(23, 23, 23, .1); }
  .site-nav.is-open { display: flex; }
  .site-nav__links { flex-direction: column; }
  .site-nav__links a { padding: 12px 14px; font-size: 1.05rem; }
  .site-nav__end { justify-content: space-between; }
  .hero__grid, .about__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__figure { transform: none; }
  .hero-art { transform: none; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps::before { left: 41px; right: auto; top: 20px; bottom: 20px; width: 6px; height: auto; background: repeating-linear-gradient(180deg, var(--ink) 0 22px, transparent 22px 34px); }
  .step { grid-template-columns: 88px minmax(0, 1fr); column-gap: 18px; row-gap: 2px; padding-bottom: 22px; }
  .step__icon { grid-row: span 3; }
  .title-block { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .title-block__brand { grid-column: 1 / -1; grid-row: auto; }
  .title-block__cell--rev { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .sys-dialog__inner { grid-template-columns: minmax(0, 1fr); }
  .sys-dialog__art { padding: 24px 44px; }
  .quote-form__row { grid-template-columns: minmax(0, 1fr); }
  .contact__list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .title-block { grid-template-columns: minmax(0, 1fr); }
  .brand__word { font-size: 1.15rem; }
  .hero-callout__text { font-size: 24px; }
  .about__quote { padding-left: 48px; }
  .about__quote::before { font-size: 4.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Theme C overrides: white leads; yellow and black only mark what matters
   (the headline highlight, calls to action, section numbers, the belief statement).
   ===================================================================== */
:root { --paper: #FFFFFF; --soft: #F6F5F1; --tint-y: #FFF6CC; --tint-m: #F6F5F1; --tint-o: #F6F5F1; --rule: #E6E3DA; }
body { background: var(--white); }

.hero { background: var(--white); border-bottom: 1px solid var(--rule); }
.hero::after { height: 8px; background: repeating-linear-gradient(-45deg, var(--ink) 0 12px, var(--yellow) 12px 24px); }
.hero__title mark { background: var(--yellow); color: var(--ink); border-radius: .22em; padding: 0 .12em; }
.hero__lead { color: var(--muted); }
.hero__services li { box-shadow: inset 0 0 0 1.5px var(--rule); color: var(--muted); }
.hero__services li:nth-child(2) { background: transparent; }
.hero__figure { background: var(--soft); box-shadow: none; transform: none; border-radius: 32px; }
.hero__figure::before { background: var(--ink); color: var(--yellow); }
.hero-art { transform: none; }
.btn--ghost { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover, .hero .btn--ghost:hover { background: var(--soft); }

.about__factors { background: var(--soft); }
.factor { border-bottom-color: var(--rule); }
.factor__n, .factor:nth-child(n) .factor__n { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--rule); }
.about__quote { padding: 34px 34px 34px 96px; background: var(--ink); color: var(--white); border-radius: var(--radius); }
.about__quote::before { left: 28px; top: 20px; color: var(--yellow); }

.systems { background: var(--white); }
.chip { background: var(--white); }
.sys-card__art, .sys-card:nth-child(n) .sys-card__art { background: var(--soft); }
.sys-card__tags li { background: var(--soft); }
.sys-dialog__art { background: var(--soft); }
.sys-dialog__note { background: var(--soft); }

.services { background: var(--soft); border-block: 1px solid var(--rule); }
.services .sec-label__num { background: var(--yellow); color: var(--ink); }
.svc-card { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
.svc-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 2px var(--ink), var(--lift); }
.svc-card__num { color: var(--muted); }
.svc-card__key { color: var(--ink); }
.svc-card__key::after { content: ''; display: block; width: 44px; height: 6px; margin-top: 12px; background: var(--yellow); border-radius: 3px; }
.svc-card__title { color: var(--ink); }
.svc-card__list { border-top-color: var(--rule); }
.svc-card__list li { color: var(--muted); }
.svc-card__list li::before { box-shadow: 0 0 0 1.5px var(--ink); }

.step__icon, .step:nth-child(n) .step__icon { background: var(--soft); }
.step:last-child .step__icon { background: var(--yellow); }

.projects { background: var(--white); }
.proj-card { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--rule); }
.proj-card__slot, .proj-card:nth-child(n) .proj-card__slot { background: var(--soft); border-color: #CFCBC0; }
.knowledge { background: var(--soft); border-block: 1px solid var(--rule); }
.art-card__status { background: var(--soft); }
.tag { background: var(--soft); box-shadow: inset 0 0 0 1px var(--rule); }

.contact { background: var(--white); color: var(--ink); }
.contact .sec-title { color: var(--ink); }
.contact .sec-lead { color: var(--muted); }
.contact__list > div { background: var(--soft); }
.contact__list dt { color: var(--muted); }
.quote-form { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink), 10px 10px 0 var(--yellow); }
.field input, .field select, .field textarea { background: var(--white); }
.quote-form__msg.is-shown { background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--ink); }
.quote-form__msg.is-error { background: var(--tint-y); }
.hero__title { text-transform: none; letter-spacing: -.015em; }


/* =====================================================================
   Theme F: a sketchbook. Marker doodles of the trade around the BUMBLE FIX system,
   drawn on a soft, blurred background photo. The ink draws itself once on load.
   Swap in a real photo by saving it as src/assets/img/hero-bg.jpg and rebuilding.
   ===================================================================== */
:root { --hand: 'Mali', 'Prompt', var(--thai-fallback); }

.hero--doodle {
  position: relative; isolation: isolate; overflow: hidden;
  background-color: #EEF1F2;
  background-image: var(--hero-photo,
    radial-gradient(18% 22% at 8% 18%, #FFFFFF 0 60%, transparent 100%),
    radial-gradient(10% 14% at 22% 70%, #F6EBC0 0 55%, transparent 100%),
    radial-gradient(12% 16% at 46% 14%, #DDEFEA 0 55%, transparent 100%),
    radial-gradient(10% 15% at 64% 76%, #F6DED2 0 55%, transparent 100%),
    radial-gradient(14% 18% at 84% 22%, #E3E8EC 0 55%, transparent 100%),
    radial-gradient(12% 16% at 94% 64%, #F6EBC0 0 55%, transparent 100%),
    linear-gradient(180deg, #F3F5F6, #E7ECEE));
  background-size: cover; background-position: center;
  padding-block: clamp(48px, 6vw, 88px) clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--rule);
}
.hero--doodle::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* with the real photo: it is already soft and bright, so only a light veil on the text side */
.hero--doodle[style*="background-image"]::before { background: linear-gradient(90deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .45) 45%, rgba(255, 255, 255, .15) 100%); -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero--doodle::after { content: none; }
.hero--doodle .hero__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.hero--doodle .hero__title:lang(th) { font-size: clamp(2.2rem, 4.4vw, 3.9rem); }
.hero--doodle .hero__doodle { margin-right: clamp(-40px, -2vw, 0px); }
.hero--doodle .hero__eyebrow { font-family: var(--hand); font-size: .95rem; letter-spacing: .02em; text-transform: none; background: var(--ink); color: var(--yellow); transform: rotate(-2deg); }
.hero--doodle .hero__title mark { background: var(--yellow); border-radius: .3em .1em .35em .15em; }
.hero--doodle .hero__services li { font-family: var(--hand); letter-spacing: .04em; background: rgba(255, 255, 255, .8); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.hero--doodle .hero__services li:nth-child(2) { transform: rotate(-2deg); background: var(--yellow); }
.hero--doodle .btn--ghost { background: rgba(255, 255, 255, .8); }
.hero__doodle { margin: 0; }
.hero-doodle-art { width: 100%; height: auto; display: block; overflow: visible; }

.dd-label { font-family: var(--hand); font-weight: 700; fill: var(--ink); letter-spacing: .02em; }
.dd-label--sys { fill: var(--ink); }
.dd-ink { stroke-dasharray: 1; stroke-dashoffset: 0; animation: dd-draw .9s ease both; animation-delay: calc(var(--o) * 40ms + 150ms); }
.dd-ink--ghost { opacity: .45; }
.dd-spin { transform-box: fill-box; transform-origin: center; animation: spin var(--s) linear infinite; }
.dd-spin--rev { animation-direction: reverse; }
.dd-float { transform-box: fill-box; transform-origin: center; animation: dd-bob 5.5s ease-in-out infinite; animation-delay: var(--d); }
.dd-puff { transform-box: fill-box; transform-origin: center; animation: dd-puff 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * .3s); }
.dd-spark { animation: blink .5s steps(2) infinite; }
@keyframes dd-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes dd-bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes dd-puff { 50% { transform: scale(1.18); } }

/* the same hand-drawn wobble on the system illustrations */
.sys-art { filter: url(#bf-sketch); }

/* handwriting for small labels, and a marker squiggle under section titles */
.sec-label { font-family: var(--hand); font-size: .95rem; letter-spacing: .02em; }
.sec-head::after { content: ''; width: 120px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14' viewBox='0 0 120 14'%3E%3Cpath d='M3 9 C15 2 25 2 35 8 S55 13 65 7 S85 1 95 7 S110 11 117 6' fill='none' stroke='%23F5C400' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat; }
.sec-head { grid-auto-rows: auto; }
.filter__label, .about__factors-title { font-family: var(--hand); }

@media (max-width: 980px) {
  .hero--doodle .hero__grid { grid-template-columns: minmax(0, 1fr); }
}

/* doodle image stage */
.dd-stage { position: relative; aspect-ratio: 880 / 690; container-type: inline-size; }
.dd-overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dd-line { stroke-dasharray: 1; stroke-dashoffset: 0; animation: dd-draw 1.1s ease both .2s; }
.dd-trail { animation: dd-trail 1.2s linear infinite; }
@keyframes dd-trail { to { stroke-dashoffset: -28; } }
.dd-item { position: absolute; height: auto; filter: drop-shadow(0 6px 10px rgba(23, 23, 23, .12)); animation: dd-pop .6s cubic-bezier(.2, .9, .3, 1.35) both; animation-delay: calc(var(--o) * 80ms + 100ms); }
.dd-item--float { animation: dd-pop .6s cubic-bezier(.2, .9, .3, 1.35) both, dd-bob 5.5s ease-in-out infinite; animation-delay: calc(var(--o) * 80ms + 100ms), calc(var(--o) * -0.6s); }
.dd-item--wobble { animation: dd-pop .6s cubic-bezier(.2, .9, .3, 1.35) both, dd-wobble 4s ease-in-out infinite; animation-delay: calc(var(--o) * 80ms + 100ms), calc(var(--o) * -0.4s); }
.dd-item--drift { animation: dd-pop .6s cubic-bezier(.2, .9, .3, 1.35) both, dd-drift 9s ease-in-out infinite alternate; animation-delay: calc(var(--o) * 80ms + 100ms), 0s; }
@keyframes dd-pop { from { opacity: 0; transform: translateY(14px) scale(.85); } }
@keyframes dd-wobble { 50% { transform: rotate(7deg); } }
@keyframes dd-drift { to { transform: translateX(14px); } }
.dd-tag {
  position: absolute; transform: rotate(var(--r)); white-space: nowrap;
  font: 700 clamp(13px, 3.1cqw, 26px)/1 var(--hand); letter-spacing: .02em; color: var(--ink);
  animation: dd-pop .6s ease both 1s;
}
.dd-tag--sm { font-size: clamp(11px, 2.6cqw, 22px); }
.dd-tag--cloud { font-size: clamp(11px, 2.4cqw, 20px); }
.dd-tag--brand { background: var(--ink); color: var(--yellow); padding: .35em .6em; border-radius: .4em; font-size: clamp(11px, 2.2cqw, 18px); }

/* company logo */
.brand__logo { height: 44px; width: auto; display: block; }
.brand__logo--footer { height: 52px; }

/* =====================================================================
   Type scale (Theme F): headings about half the earlier size, text a touch smaller,
   nothing under 12px. Sentence case everywhere: all-caps reads like shouting.
   ===================================================================== */
body { font-size: 1rem; }                                                     /* 16px */
.hero__title { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.01em; }  /* 32–52px EN */
.hero--doodle .hero__title:lang(th), .hero__title:lang(th) { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.32; } /* 28–40px */
.hero__lead { font-size: clamp(1.05rem, 1.3vw, 1.15rem); }                    /* 17–18px */
.sec-title { font-size: clamp(1.5rem, 2.6vw, 2rem); }                         /* 24–32px */
.sec-lead { font-size: 1rem; }
.about__body { font-size: 1.0625rem; }
.about__quote p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.sys-card__name { font-size: 1.0625rem; }                                     /* 17px */
.sys-card__desc { font-size: .9375rem; }                                      /* 15px */
.sys-card--ask h3 { font-size: 1.3rem; }
.sys-dialog__title { font-size: 1.5rem; }
.svc-card__key { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.svc-card__title { font-size: 1.05rem; }
.step__title { font-size: 1.05rem; }
.proj-card__title, .art-card__title { font-size: 1.1rem; }
.quote-form__title { font-size: 1.3rem; }
.factor__name { font-size: 1rem; }
.site-nav__links a { font-size: .95rem; }
.btn { font-size: .95rem; }
.dd-tag { font-size: clamp(12px, 2.6cqw, 21px); }
.dd-tag--sm { font-size: clamp(12px, 2.3cqw, 19px); }
.dd-tag--cloud, .dd-tag--brand { font-size: clamp(12px, 2.1cqw, 17px); }

/* the smallest text: at least 12px */
.sys-card__code, .tag, .sys-card__tags li, .title-block__k, .step__n, .svc-card__num,
.filter__status, .art-card__status, .proj-card__slot span, .hero__figure::before { font-size: max(.78rem, 12px); }
.hero__services li { font-size: .85rem; }

/* sentence case: no forced capitals, normal spacing */
.hero__eyebrow, .sys-dialog__body h4, .proj-card__slot span, .art-card__status, .hero__figure::before,
.sec-label, .filter__label, .title-block__k, .contact__list dt, .field label { text-transform: none; }
.hero__eyebrow, .hero__services li, .tag, .sys-card__code, .title-block__k, .step__n, .svc-card__num,
.sys-dialog__body h4, .art-card__status, .proj-card__slot span { letter-spacing: .02em; }
.svc-card__key { letter-spacing: 0; }

/* ===== Sections added from the website content plan (shared by every theme) ===== */
.prob-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prob-card { display: grid; gap: 10px; align-content: space-between; padding: 22px 22px 18px; background: var(--white, #fff); border: 1.5px solid var(--rule, #E3DFD3); border-radius: var(--radius, 16px); }
.prob-card__n { font: 700 .8rem/1 var(--display); color: var(--muted); }
.prob-card__text { font-weight: 500; line-height: 1.55; }
.prob-card__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: .9rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prob-card__link .ico-arrow { width: 16px; height: 16px; }
.svc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc-card__short { font-weight: 500; line-height: 1.5; }
.svc-card__gets { font-size: .9rem; line-height: 1.5; padding-top: 10px; border-top: 1px dashed currentColor; opacity: .9; }
.why-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.why-card { display: grid; gap: 8px; align-content: start; padding: 22px; border-top: 4px solid var(--yellow); background: var(--white, #fff); border-radius: 0 0 var(--radius, 16px) var(--radius, 16px); }
.why-card__n { font: 700 1.6rem/1 var(--display); }
.why-card__title { font-size: 1.05rem; }
.why-card__desc { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.steps--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sec-more { margin-top: 28px; }
.cta-band { background: var(--ink); color: var(--paper, #F7F6F0); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 40px; }
.cta-band__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--yellow); }
.cta-band__body { color: #D9D6CC; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-band .btn--primary { background: var(--yellow); color: var(--ink); }
.cta-band .btn--ghost { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .6); }
.choice { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.choice legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: 6px; }
.choice__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.choice__opt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 1.5px solid var(--rule, #E3DFD3); border-radius: 999px; cursor: pointer; font-size: .95rem; }
.choice__opt input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.choice__opt:has(input:checked) { border-color: var(--ink); background: var(--yellow); }
.choice__opt:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.field input[type="file"] { padding: 10px; min-height: 0; background: transparent; }
@media (max-width: 1100px) {
  .svc-grid--4, .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prob-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) { .steps--6 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .svc-grid--4, .why-grid, .prob-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-band__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* Theme F tuning for the new sections */
.problems { background: var(--soft); }
.prob-card { border-radius: 20px; }
.prob-card__n { font-family: var(--hand); font-size: 1rem; color: var(--ink); }
.services .svc-card__short { color: var(--ink); }
.svc-card__gets { color: var(--muted); border-top-color: var(--rule); }
.why { background: var(--soft); border-block: 1px solid var(--rule); }
.why-card { box-shadow: inset 0 0 0 1.5px var(--rule); border-top: 0; border-radius: 20px; position: relative; overflow: hidden; }
.why-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--yellow); }
.why-card__n { font-family: var(--hand); }
.steps--6::before { left: 4%; right: 4%; }
.step__desc { font-size: .9rem; }
.cta-band__title { font-family: var(--display); }

/* client logos */
.client-grid { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.client { display: grid; justify-items: center; align-content: start; gap: 10px; padding: 18px 14px; background: #FFFFFF; border: 1.5px solid var(--rule, #E3DFD3); border-radius: var(--radius, 16px); text-align: center; }
.client img { width: 100%; max-width: 150px; height: 64px; object-fit: contain; }
.client span { font-size: .85rem; line-height: 1.4; color: var(--muted); }
.client-note { margin-bottom: 20px; }
@media (max-width: 980px) { .client-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Tighter rhythm: less space between sections, a shorter hero */
.sec { padding-block: clamp(40px, 5vw, 64px); }
.sec-head { margin-bottom: clamp(20px, 2.6vw, 32px); gap: 10px; }
.hero--doodle { padding-block: clamp(24px, 3vw, 40px); }
.hero--doodle .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.hero--doodle .hero__copy { gap: 18px; }
.hero__doodle { max-width: 560px; justify-self: end; width: 100%; }
.sec-more { margin-top: 20px; }
.cta-band__inner { padding-block: 28px; }

/* Column footer on black: all-white logo, short address, bottom bar */
.site-footer--cols { padding-block: 40px 0; background: var(--ink); color: #D9D6CC; }
.foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 32px; }
.foot__logo { height: 56px; width: auto; display: block; }
.foot__h { font: 600 1.05rem/1.3 var(--display); color: #FFFFFF; margin-bottom: 10px; }
.foot__col ul { list-style: none; display: grid; gap: 6px; }
.foot__col a { color: #D9D6CC; text-decoration: none; }
.foot__col a:hover { color: var(--yellow); text-decoration: underline; }
.foot__col p { font-size: .95rem; line-height: 1.6; }
.foot__col p + p { margin-top: 8px; }
.foot__bar { background: #0E0E0E; border-top: 3px solid var(--yellow); }
.foot__bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 14px; font-size: .85rem; color: #BDB8AA; }
@media (max-width: 980px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .foot { grid-template-columns: minmax(0, 1fr); } .hero__doodle { justify-self: center; } }

.prob-card { align-content: start; }
.prob-card__title { font-size: 1.05rem; line-height: 1.4; }
.prob-card__text { font-weight: 400; font-size: .95rem; color: var(--muted); }
.prob-card__link { margin-top: auto; }

/* System card illustrations: the original Bold Yellow look (no sketch wobble, tinted panels) */
.sys-art { filter: none; }
.sys-card__art, .sys-card:nth-child(n) .sys-card__art { background: #FFF1B3; border-radius: 18px; }
.sys-card:nth-child(3n + 2) .sys-card__art { background: #DDF1EE; }
.sys-card:nth-child(3n + 3) .sys-card__art { background: #FCE3D5; }
.sys-dialog__art { background: var(--yellow); }
.prob-card { display: flex; flex-direction: column; gap: 10px; }

/* accordions: problems and services show the question first, details on click */
.acc-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.acc { background: var(--white, #fff); border: 1.5px solid var(--rule, #E3DFD3); border-radius: var(--radius, 16px); transition: border-color .2s ease, box-shadow .2s ease; }
.acc[open] { border-color: var(--ink); }
.acc__sum { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px 20px; min-height: 64px; cursor: pointer; }
.acc__sum::-webkit-details-marker { display: none; }
.acc__sum:hover { background: rgba(245, 196, 0, .08); }
.acc__n { font: 700 .85rem/1 var(--display); color: var(--muted); }
.acc__title { font: 600 1.02rem/1.45 var(--display); display: grid; gap: 4px; }
.acc__key { justify-self: start; font: 700 .75rem/1 var(--display); letter-spacing: .04em; background: var(--yellow); color: var(--ink); padding: 5px 8px; border-radius: 6px; margin-bottom: 2px; }
.acc__short { font: 400 .92rem/1.5 var(--body); color: var(--muted); }
.acc__icon { width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); position: relative; flex: none; }
.acc__icon::before, .acc__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .2s ease; }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc[open] .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__body { display: grid; gap: 12px; padding: 0 20px 20px 20px; color: var(--muted); line-height: 1.6; }
.acc--svc .svc-card__list { list-style: none; display: grid; gap: 8px; }
.acc--svc .svc-card__list li { position: relative; padding-left: 20px; color: var(--ink); }
.acc--svc .svc-card__list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1.5px var(--ink); }
.client-grid--logos .client { padding: 16px; align-content: center; min-height: 96px; }
.contact__single { max-width: 860px; }
.contact__phone { font: 600 1.05rem/1.4 var(--display); margin: -6px 0 18px; }
.contact__phone a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.quote-form__privacy { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .acc-grid { grid-template-columns: minmax(0, 1fr); } }

/* System cards in the Swiss Grid style: one ruled grid, square corners, white art */
.sys-grid { gap: 0; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.sys-card { border-radius: 0; box-shadow: none; background: #FFFFFF; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: 20px 22px 18px; transition: background-color .2s ease, opacity .25s ease, filter .25s ease; }
.sys-card > :not(.sys-card__art) { margin-inline: 0; }
.sys-card:hover, .sys-card:focus-within { transform: none; box-shadow: none; background: #FFF6CC; }
.sys-card__code { order: -1; letter-spacing: .14em; }
.sys-card__art, .sys-card:nth-child(n) .sys-card__art { background: transparent; border-radius: 0; border: 0; padding: 10px 12px; margin: 0 0 6px; }
.sys-card__tags li { background: transparent; border: 1px solid var(--rule); border-radius: 0; }
.sys-card__more { width: 100%; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--rule); border-radius: 0; }
.sys-card__more .ico-arrow { width: 20px; height: 20px; padding: 0; background: none; border-radius: 0; }
.sys-card:hover .sys-card__more .ico-arrow { background: none; color: var(--ink); transform: translateX(5px); }
.sys-card__more::after { border-radius: 0; }
.sys-card--ask { background: var(--ink); border-radius: 0; }
.sys-card--ask:hover { background: var(--ink); }
.sys-card--ask .btn { border-radius: 0; }
.sys-dialog, .sys-dialog__art { border-radius: 0; }
.sys-dialog__art { background: #FFF6CC; border-right: 1.5px solid var(--ink); }

/* accordions in this theme */
.acc { border-radius: 18px; }
.acc__n { font-family: var(--hand); font-size: 1rem; color: var(--ink); }
.problems .acc { background: #FFFFFF; }
.services .acc { background: #FFFFFF; }

/* Type: Sarabun everywhere; Mali only for the hand-drawn design labels in the hero */
:root { --display: 'Sarabun', var(--thai-fallback); --body: 'Sarabun', var(--thai-fallback); --hand: 'Mali', 'Sarabun', var(--thai-fallback); }
h1, h2, h3, h4 { font-weight: 700; }
.sec-label, .filter__label, .about__factors-title, .prob-card__n, .why-card__n, .acc__n, .cta-band__title { font-family: var(--display); }
.sec-label { font-weight: 600; font-size: .95rem; }
.acc__n { font-weight: 700; font-size: .95rem; }

/* Mission: small doodles instead of numbers */
.factor { grid-template-columns: 56px minmax(0, 1fr); }
.factor__n--pic { width: 56px; height: 56px; padding: 6px; border-radius: 16px; }
.factor__n--pic img { width: 100%; height: 100%; object-fit: contain; animation: dd-bob 5.5s ease-in-out infinite; }
.factor:nth-child(2) .factor__n--pic img { animation: spin 9s linear infinite; }
.factor:nth-child(3) .factor__n--pic img { animation: dd-wobble 4s ease-in-out infinite; }

/* Systems: separate soft cards instead of the black ruled table */
.sys-grid { gap: 16px; border: 0; }
.sys-card { border: 1.5px solid var(--rule); border-radius: 18px; background: #FFFFFF; transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease, opacity .25s ease; }
.sys-card:hover, .sys-card:focus-within { background: #FFFBEA; border-color: var(--yellow); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(23, 23, 23, .07); }
.sys-card__art, .sys-card:nth-child(n) .sys-card__art { background: #FFF6CC; border-radius: 12px; padding: 12px; margin: 0 0 8px; }
.sys-card__tags li { border-radius: 999px; }
.sys-card--ask { background: var(--yellow); border-color: var(--yellow); }
.sys-card--ask:hover { background: var(--yellow); border-color: var(--yellow); }
.sys-card--ask h3, .sys-card--ask p, .sys-card--ask .sys-card__code { color: var(--ink); }
.sys-card--ask .btn { background: var(--ink); color: var(--yellow); border-radius: 999px; }
.sys-dialog { border-radius: 18px; }
.sys-dialog__art { border-right: 0; }

/* Dialog art moves like the card art on hover */
.sys-dialog[open] .a-flow path { animation: dash 1s linear infinite; }
.sys-dialog[open] .a-drop { animation: drop 1s ease-in infinite; }
.sys-dialog[open] .a-shake { animation: shake .35s ease-in-out infinite; }
.sys-dialog[open] .a-pulse { animation: blink .6s steps(2) infinite; }
.sys-dialog[open] .a-drip { animation: drip .9s ease-in infinite; }
.sys-dialog[open] .a-bob { animation: bob 1.2s ease-in-out infinite; }
.sys-dialog[open] .a-rise { animation: rise 1.1s ease-out infinite; }
.sys-dialog[open] .a-spin { animation: spin 1s linear infinite; transform-box: view-box; }
.sys-card--ask .sys-card__desc, .sys-card--ask .sys-card__code { color: rgba(23, 23, 23, .78); }
.factor:nth-child(2) .factor__n--pic img { animation: dd-wobble 3.2s ease-in-out infinite; }

/* Article list and article pages */
.page { padding: clamp(24px, 4vw, 44px) 0 clamp(48px, 6vw, 80px); background: var(--paper); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.page-head { margin-bottom: 26px; }
.page-head .sec-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.art-grid { gap: 16px; }
.art-card--link { background: #FFFFFF; transition: transform .2s ease, box-shadow .2s ease; }
a.art-card--link:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--yellow), 0 10px 24px rgba(23, 23, 23, .07); }
.art-card__excerpt { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.art-card--link .art-card__status { margin-top: auto; background: var(--tint-y); color: var(--ink); }
.art-card--link .art-card__status svg { width: 16px; height: 16px; }

.art { background: #FFFFFF; border: 1.5px solid var(--rule); border-radius: 22px; padding: clamp(22px, 4vw, 48px); }
.art__head { display: grid; gap: 12px; justify-items: start; max-width: 860px; margin-bottom: clamp(20px, 3vw, 32px); padding-bottom: clamp(18px, 3vw, 28px); border-bottom: 1.5px solid var(--rule); }
.art__title { font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.3; }
.art__meta { color: var(--muted); font-size: .95rem; }
.art__layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.art__toc { position: sticky; top: 96px; font-size: .92rem; }
.art__toc-h { font-weight: 700; margin-bottom: 10px; }
.art__toc ol { list-style: none; display: grid; gap: 2px; padding: 0; margin: 0; border-left: 2px solid var(--rule); }
.art__toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.art__toc a:hover { color: var(--ink); border-left-color: var(--yellow); }
.art__layout:not(:has(.art__toc)) { grid-template-columns: minmax(0, 1fr); }

.prose { max-width: 760px; font-size: 1.06rem; line-height: 1.8; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.4; margin-top: 1.8em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose strong { font-weight: 700; background: linear-gradient(transparent 62%, rgba(245, 196, 0, .45) 0); }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: .45em; }
.prose ul li::marker { color: var(--yellow-deep, #C99A00); }
.prose ol li::marker { font-weight: 700; }
.prose .checklist { list-style: none; padding-left: 0; }
.prose .checklist li { position: relative; padding-left: 34px; }
.prose .checklist li::before { content: ''; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 6px; background: #FFFFFF; }
.prose .formula { display: inline-block; font: 700 1.1rem/1.5 var(--display); background: var(--tint-y); border-radius: 12px; padding: 10px 18px; }
.prose .table-wrap { overflow-x: auto; border: 1.5px solid var(--rule); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; line-height: 1.55; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--rule); }
.prose th { background: var(--paper); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.art-note { border-left: 4px solid var(--yellow); background: #FFFBEA; border-radius: 0 14px 14px 0; padding: 14px 18px; color: var(--muted); font-size: .98rem; }

.art-cta { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; margin-top: 24px; padding: clamp(20px, 3vw, 32px); background: var(--ink); color: #FFFFFF; border-radius: 22px; }
.art-cta__title { color: var(--yellow); font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.art-cta p { color: rgba(255, 255, 255, .78); margin-top: 4px; }
.art-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.art-cta .btn--ghost { color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.art-more { margin-top: clamp(36px, 5vw, 56px); }
.art-more__title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 18px; }
.site-nav__links a[aria-current="page"] { background: var(--tint-y); }

@media (max-width: 900px) {
  .art__layout { grid-template-columns: minmax(0, 1fr); }
  .art__toc { position: static; background: var(--paper); border-radius: 14px; padding: 14px 16px; }
}
.art-cta .btn--primary { background: var(--yellow); color: var(--ink); }
.art-cta .btn--primary:hover { background: #FFFFFF; }
.art-card__title, .art__title { text-wrap: pretty; }
@media (max-width: 900px) { .art__toc { display: none; } }
.art-cover { margin: 0 0 clamp(20px, 3vw, 32px); }
.art-cover img { display: block; width: 100%; max-width: 980px; height: auto; border-radius: 18px; border: 1.5px solid var(--rule); background: #FFFFFF; }
.art-fig { margin: 1.6em 0; }
.art-fig img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1.5px solid var(--rule); background: #FFFFFF; }
.art-cover figcaption, .art-fig figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); }

/* Japanese pages: a Japanese typeface for headings and text (the Thai font has no Japanese glyphs) */
html[lang="ja"] { --display: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif; --body: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif; }
html[lang="ja"] body { line-height: 1.8; }
html[lang="ja"] .hero__title, html[lang="ja"] .sec-title, html[lang="ja"] .art__title { line-break: strict; word-break: normal; }

/* Phones and small tablets: stack the hero (text first, drawing below) */
@media (max-width: 860px) {
  .hero--doodle .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero--doodle .hero__doodle { width: 100%; max-width: 560px; margin-inline: auto; }
}
/* Japanese headline: Japanese needs more line height than Latin */
html[lang="ja"] .hero__title { font-size: clamp(1.75rem, 3.1vw, 2.5rem); line-height: 1.4; letter-spacing: 0; }
html[lang="ja"] .sec-title { line-height: 1.45; letter-spacing: 0; }
/* Japanese line breaks: break between phrases, not inside words (supported in current Chrome and Edge) */
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] .acc__title, html[lang="ja"] .factor__name { word-break: auto-phrase; }
.hero__title .nb { display: inline-block; }

/* Floating language switch on the right edge */
.site-nav__end .lang { display: none; }
.lang-float { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 60; display: grid; gap: 4px; padding: 5px; background: rgba(255, 255, 255, .94); border: 1.5px solid var(--ink); border-radius: 999px; box-shadow: 0 6px 18px rgba(23, 23, 23, .12); backdrop-filter: blur(6px); }
.lang-float__item { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 700 .72rem/1 var(--display); letter-spacing: .04em; color: var(--ink); text-decoration: none; }
a.lang-float__item:hover { background: var(--tint-y, #FFF1B3); }
.lang-float__item.is-current { background: var(--ink); color: var(--yellow); }
/* Back to top */
.to-top { position: fixed; right: 12px; bottom: 18px; z-index: 60; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink), 0 8px 20px rgba(23, 23, 23, .18); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--yellow); }
@media (max-width: 760px) {
  .lang-float { right: 6px; top: auto; bottom: 76px; transform: none; padding: 4px; }
  .lang-float__item { width: 30px; height: 30px; font-size: .66rem; }
  .to-top { right: 8px; bottom: 16px; width: 42px; height: 42px; }
}
/* Inner pages: a little room under the header */
.page-main > .sec:first-child { padding-top: clamp(36px, 5vw, 64px); }
.page-main h1.sec-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }

/* Links inside articles */
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose a:hover { background: var(--tint-y, #FFF1B3); }
.prose td:last-child { white-space: nowrap; }
@media (max-width: 760px) { .prose td:last-child { white-space: normal; } }

/* Final overrides: no section numbers; smaller headings; menu names and leads match the black quote box text */
.sec-label__num { display: none; }
.sec-title { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.page-main h1.sec-title, .page-head .sec-title { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.sec-label { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.sec-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
/* Client logo rows sit closer together */
.client-grid { row-gap: 4px; }

/* Hero banner: big English tagline, localized headline, icon trio, single doodle drawing */
.hero--banner { background: #FFFFFF; background-image: radial-gradient(44% 70% at 108% 114%, #F5C400 0 49.8%, transparent 50%), radial-gradient(28% 46% at 104% 110%, #FBE17A 0 99.6%, transparent 100%), radial-gradient(22% 34% at -6% -10%, #FBE17A 0 99.6%, transparent 100%); padding-block: clamp(28px, 4vw, 56px); }
.hero--banner::before { content: none; }
.hero--banner .hero__grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(20px, 3vw, 48px); }
.hero--banner .hero__copy { gap: 16px; }
.hero__big { font: italic 800 clamp(2.4rem, 5.2vw, 4.4rem)/.98 var(--display); letter-spacing: -.02em; text-transform: uppercase; color: var(--ink); margin: 0; }
.hero__big span { background: linear-gradient(transparent 82%, #F5C400 82% 96%, transparent 96%); padding-right: .15em; }
.hero--banner .hero__title, .hero--banner .hero__title:lang(th) { font-size: clamp(1.6rem, 2.55vw, 2.15rem); line-height: 1.32; }
.hero--banner .hero__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
@media (max-width: 860px) { .hero--banner .hero__grid { grid-template-columns: minmax(0, 1fr); } }
.hero--banner .hero__lead { border-left: 4px solid #F5C400; padding-left: 14px; max-width: 44ch; font-size: clamp(1rem, 1.2vw, 1.1rem); color: var(--ink); }
.hero__trio { display: flex; gap: 0; list-style: none; padding: 0; margin: 4px 0 0; }
.hero__trio li { display: grid; justify-items: center; gap: 8px; padding: 0 18px; text-align: center; font: 700 .78rem/1.25 var(--display); letter-spacing: .04em; text-transform: uppercase; max-width: 130px; }
.hero__trio li:first-child { padding-left: 0; }
.hero__trio li + li { border-left: 1px solid var(--rule); }
.hero__ico { width: 56px; height: 56px; border-radius: 50%; background: #F5C400; display: grid; place-items: center; }
.hero__ico svg { width: 30px; height: 30px; }
.hero--banner .hero__doodle { max-width: none; margin: 0; justify-self: stretch; }
.hero--banner .hero__doodle img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .hero--banner .hero__grid { grid-template-columns: minmax(0, 1fr); } .hero--banner { background-image: none; } }
@media (max-width: 420px) { .hero__trio li { padding: 0 10px; font-size: .7rem; } .hero__ico { width: 48px; height: 48px; } }
.hero--banner .hero__doodle img { mix-blend-mode: multiply; }
/* Animated touches over the hero doodle: steam, bubbles, water surface, clean-air waves */
.hero--banner .hero__doodle { position: relative; }
.hero-anim { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ha-steam path { animation: ha-steam 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); }
@keyframes ha-steam { 0% { transform: translate(0, 8px) scaleY(.85); opacity: 0; } 25% { opacity: 1; } 50% { transform: translate(5px, -2px) scaleY(1); } 80% { opacity: 1; } 100% { transform: translate(-3px, -16px) scaleY(1.08); opacity: 0; } }
.ha-bub circle { animation: ha-bub 3s linear infinite; animation-delay: calc(var(--i) * -.6s); }
.ha-bub circle.s { animation-name: ha-bub-s; animation-duration: 2.4s; }
@keyframes ha-bub { 0% { transform: translate(0, 8px); opacity: 0; } 15% { opacity: 1; } 50% { transform: translate(5px, -55px); } 90% { opacity: 1; } 100% { transform: translate(-3px, -118px); opacity: 0; } }
@keyframes ha-bub-s { 0% { transform: translateY(4px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-50px); opacity: 0; } }
.ha-wave { animation: ha-wave 1.8s linear infinite; }
@keyframes ha-wave { to { transform: translateX(48px); } }
.ha-air path { animation: ha-air 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.5s); }
@keyframes ha-air { 0%, 100% { transform: translate(-8px, 6px); opacity: .35; } 50% { transform: translate(10px, -6px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-anim * { animation: none !important; } }
/* Hero doodle v2: rising vapour, falling spray, wiggling handwritten tags */
.ha-steam path { stroke: #8D949B; stroke-width: 6; }
.ha-spray path { animation: ha-spray .9s linear infinite; }
@keyframes ha-spray { to { stroke-dashoffset: -30; } }
.ha-tag { animation: ha-tag 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.65s); transform-box: fill-box; transform-origin: center; }
@keyframes ha-tag { 0%, 100% { transform: rotate(-2.5deg) translateY(0); } 50% { transform: rotate(2.5deg) translateY(-7px); } }
.ha-tag text { font: 600 46px var(--hand); fill: #171717; }
.ha-tag rect.y { fill: #F5C400; }
.ha-tag rect.w { fill: #FFFFFF; stroke: #171717; stroke-width: 4; }
.ha-arrow { fill: none; stroke: #171717; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .ha-tag text { font-size: 52px; } }
/* Hero doodle v3: vapour rises to the hood, tank bubbles, frameless tags, dashed arrows */
.ha-steam path { animation: ha-rise 2.8s linear infinite; animation-delay: calc(var(--i) * -.56s); }
@keyframes ha-rise { 0% { transform: translate(0, 26px) scale(.8); opacity: 0; } 15% { opacity: .95; } 50% { transform: translate(6px, -22px) scale(1); } 80% { opacity: .8; } 100% { transform: translate(-4px, -74px) scale(1.15); opacity: 0; } }
.ha-bub circle { animation: ha-tankbub 2.6s linear infinite; animation-delay: calc(var(--i) * -.43s); }
@keyframes ha-tankbub { 0% { transform: translate(0, 6px); opacity: 0; } 15% { opacity: 1; } 50% { transform: translate(4px, -42px); } 85% { opacity: 1; } 100% { transform: translate(-3px, -88px); opacity: 0; } }
.ha-tag text { font-size: 50px; paint-order: stroke; stroke: #FFFFFF; stroke-width: 8px; stroke-linejoin: round; }
.ha-arrow { stroke-dasharray: 9 9; stroke-width: 4; }
/* Hero doodle: vapour drifts slowly from right to left while it rises */
.ha-steam { animation: ha-drift 6s ease-in-out infinite alternate; }
@keyframes ha-drift { from { transform: translateX(30px); } to { transform: translateX(-26px); } }
.ha-steam path { animation-duration: 4.6s; animation-delay: calc(var(--i) * -.92s); }
/* Hero doodle: vapour fix. Scale around each wisp's own centre so it truly rises (was scaling from the drawing's corner, which pushed it downward) */
.ha-steam path { transform-box: fill-box; transform-origin: 50% 100%; animation: ha-up 4s linear infinite; animation-delay: calc(var(--i) * -.8s); }
@keyframes ha-up { 0% { transform: translate(0, 30px) scale(.85); opacity: 0; } 15% { opacity: .95; } 80% { opacity: .7; } 100% { transform: translate(0, -80px) scale(1.1); opacity: 0; } }

/* Illustrated doodle icons replace numbers and line icons */
.pic { display: block; width: 100%; height: 100%; object-fit: contain; }
.acc__pic { width: 64px; height: 64px; flex: none; }
.acc__sum--pic { gap: 14px; padding-block: 12px; }
.why-card__pic { width: 96px; height: 96px; }
.step__icon--pic, .step:nth-child(n) .step__icon--pic { width: 112px; height: 112px; background: none; border-radius: 0; }
.steps::before { top: 54px; }
.hero__ico--pic { width: 72px; height: 72px; background: none; border-radius: 0; }
.hero__ico--pic img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 640px) { .acc__pic { width: 54px; height: 54px; } .step__icon--pic, .step:nth-child(n) .step__icon--pic { width: 92px; height: 92px; } .hero__ico--pic { width: 60px; height: 60px; } }

/* Section titles: three honeycomb cells (from the logo) replace the yellow squiggle */
.sec-head::after { width: 62px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='62' height='20' viewBox='0 0 62 20'%3E%3Cg stroke='%23171717' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M2 10l4.5-8h9l4.5 8-4.5 8h-9z' fill='%23F5C400'/%3E%3Cpath d='M22 10l4.5-8h9l4.5 8-4.5 8h-9z' fill='%23FBE17A'/%3E%3Cpath d='M42 10l4.5-8h9l4.5 8-4.5 8h-9z' fill='none'/%3E%3C/g%3E%3C/svg%3E") no-repeat; }
/* Filtered systems: matches move to the front, the rest drop back in grey */
.sys-card.is-dim { opacity: .45; filter: grayscale(1); }
.reply-extra:not(:has(.field:not([hidden]))) { display: none; }
.quote-form .field[hidden] { display: none; }

/* Image watermark replaces the "Illustration" caption */
.art-cover, .art-fig { position: relative; }
.art-cover { max-width: 980px; }
.wm { position: absolute; right: 14px; bottom: 10px; font: 700 .78rem/1 var(--display); letter-spacing: .04em; color: rgba(23, 23, 23, .3); text-shadow: 0 0 3px rgba(255, 255, 255, .9); pointer-events: none; user-select: none; }
/* Article search box */
.art-search { display: grid; gap: 6px; max-width: 520px; margin-bottom: 20px; }
.art-search label { font: 600 .9rem/1.3 var(--display); }
.art-search input { width: 100%; padding: 12px 16px; border: 1.5px solid var(--rule); border-radius: 999px; font: inherit; background: #fff; }
.art-search input:focus { outline: 2px solid var(--yellow); outline-offset: 2px; border-color: var(--ink); }
.art-search__none { color: var(--muted); margin: 6px 0 0; }
.art-card[hidden] { display: none; }

/* Site search */
.search-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--rule); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; margin-left: auto; flex: none; }
.search-toggle:hover, .search-toggle[aria-expanded="true"] { background: var(--yellow); border-color: var(--ink); }
.site-header__bar .site-nav { margin-left: 0; }
.site-search { border-top: 1.5px solid var(--rule); background: #fff; padding: 16px 0 20px; max-height: calc(100vh - var(--header-h)); overflow: auto; }
.site-search[hidden] { display: none; }
.site-search__label { display: block; font: 600 .9rem/1.3 var(--display); margin-bottom: 6px; }
.site-search input { width: 100%; max-width: 640px; padding: 12px 18px; border: 1.5px solid var(--ink); border-radius: 999px; font: inherit; }
.site-search input:focus { outline: 2px solid var(--yellow); outline-offset: 2px; }
.site-search__status { color: var(--muted); margin: 8px 0 0; }
.site-search__status:empty { display: none; }
.site-search__results { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; max-width: 760px; }
.site-search__results a { display: grid; gap: 2px; padding: 10px 14px; border: 1.5px solid var(--rule); border-radius: 14px; text-decoration: none; color: var(--ink); background: #fff; }
.site-search__results a:hover, .site-search__results a:focus-visible { border-color: var(--ink); background: var(--tint-y); }
.site-search__results span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.quote-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 980px) { .search-toggle { margin-left: auto; } .nav-toggle { margin-left: 0; } }
