/* Layer on top of the design CSS: everything WordPress and WooCommerce add. */
body.pif-theme { margin: 0; background: #fff; }
[data-when] { display: none; }
[data-when].on { display: contents; }
.pif-seen .intro { display: none; }
:where(.pf a[data-nb]) { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; color: inherit; }
:where(.pf a[data-nb]:hover) { color: inherit; }
.crumb a[data-nb] { border: 0; background: none; padding: 0; color: inherit; min-height: 32px; font-size: 13px; display: inline-flex; align-items: center; }
.crumb a[data-nb]:hover { color: var(--blue); }
.pf a.ctile, .pf a.hcard, .pf a.lcard { color: var(--ink); }
.pf a.pname { display: block; }
.pf a.pimg { display: block; }
.pf a.mn { text-decoration: none; }
.pf a.prog { color: #8A9BBD; }
.faq-a[hidden], .pd-pane[hidden] { display: none; }
.ctile-all { text-decoration: none; }
.chaty, .chaty-widget, #chaty-widget-0 { display: none !important; }

/* product page */
.pd-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pd-thumb { width: 64px; height: 64px; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.pd-thumb.on { border-color: var(--blue); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pif-cart { display: flex; flex-direction: column; gap: 12px; }
.pd-buy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.qty input { width: 56px; height: 44px; border: 0; text-align: center; font: 700 16px 'Noto Sans Thai', sans-serif; background: #fff; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-buy .variations { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.pd-buy .variations th { text-align: left; padding: 0 0 6px; font-weight: 600; font-size: 14px; display: block; }
.pd-buy .variations td { display: block; padding: 0 0 12px; }
.pd-buy .variations select { width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 16px; background: #fff; }
.pd-buy .reset_variations { font-size: 13px; }
.pd-buy .woocommerce-variation-price { font: 800 26px 'Noto Sans Thai', sans-serif; color: var(--blue); margin-bottom: 10px; }
.pd-buy .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pd-buy .quantity input { width: 72px; min-height: 48px; border: 1.5px solid var(--line); border-radius: 10px; text-align: center; font: inherit; font-size: 16px; }
/* !important: on products built with Divi, Divi's own button colours load too and would win. */
.pd-buy .single_add_to_cart_button { flex: 1 1 220px; min-height: 56px; padding: 0 16px !important; border: 0 !important; border-radius: 10px !important; background: var(--blue) !important; color: #fff !important; font: 600 16px 'Sarabun', sans-serif !important; cursor: pointer; }
.pd-buy .single_add_to_cart_button:hover { background: #071B3D !important; }
.pd-buy .single_add_to_cart_button::after { display: none !important; }
.pd-buy .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }
/* Service & contact page */
.svc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.svc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.svc-card { display: flex; flex-direction: column; gap: 12px; }
.svc-card h3 { margin: 0; font-size: 19px; font-weight: 700; color: #071B3D; }
.svc-card dl { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.svc-card dt { font-size: 13px; font-weight: 600; color: #4A5875; }
.svc-card dd { margin: 2px 0 0; line-height: 1.6; color: #0B1630; }
.svc-card-link { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: underline; }
.svc-gal { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.pg-hero h1 { text-wrap: balance; }
/* Keep jump targets clear of the sticky header. */
.ct-head, #pif-form { scroll-margin-top: 152px; }
@media (max-width: 760px) { .ct-head, #pif-form { scroll-margin-top: 80px; } }
/* Shop and category headers are navy, and Divi's colours on these pages would make this heading near-black. */
.pif-view-cat main h1 { color: #071B3D; }
/* Products built with Divi store a whole product page in their description; the theme already shows these parts. */
.pd-pane .et_pb_wc_breadcrumb, .pd-pane .et_pb_wc_title, .pd-pane .et_pb_wc_price, .pd-pane .et_pb_wc_add_to_cart, .pd-pane .et_pb_wc_images, .pd-pane .et_pb_wc_meta, .pd-pane .et_pb_wc_related_products { display: none; }
.pd-pane ul { padding-left: 20px; }
.prose { line-height: 1.85; color: #33415C; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose h2, .prose h3, .prose h4 { color: #071B3D; margin: 1.4em 0 .5em; }
.prose a { text-decoration: underline; }
.prose iframe { max-width: 100%; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; }
.pif-prose { max-width: 880px; padding-top: 36px; padding-bottom: 64px; }
.pif-cover { width: 100%; margin-bottom: 24px; }
.pif-entry #et-boc { overflow: hidden; }

/* notices */
.pif-notices:empty { display: none; }
.pf .woocommerce-message, .pf .woocommerce-info, .pf .woocommerce-error { list-style: none; margin: 14px 0; padding: 12px 16px; border-radius: 12px; background: var(--sky); color: #071B3D; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; font-size: 14px; }
.pf .woocommerce-error { background: #FEF3F2; color: #B42318; flex-direction: column; align-items: flex-start; }
.pf .woocommerce-message a.button { color: var(--blue); font-weight: 600; }

/* checkout */
.pif-checkout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.pif-co-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pif-co-side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 48px -32px rgba(7, 27, 61, .4); background: #fff; }
.pif-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.pif-card h3 { font-size: 18px; margin: 0 0 14px; color: #071B3D; }
.pf .form-row { margin: 0 0 14px; padding: 0; }
.pf .form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.pf .form-row .required { color: #B42318; text-decoration: none; }
.pf .form-row .input-text, .pf .form-row select, .pf .select2-container .select2-selection--single { width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); box-sizing: border-box; }
.pf .form-row textarea.input-text { padding: 12px 14px; min-height: 96px; }
.pf .form-row .input-text:focus, .pf .form-row select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 80, 255, .14); }
.pf .select2-container { width: 100% !important; }
.pf .select2-selection__rendered { line-height: 46px !important; padding-left: 0 !important; }
.pf .select2-selection__arrow { height: 46px !important; }
.pf .woocommerce-invalid .input-text { border-color: #B42318; }
.pf .shop_table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pf .shop_table th, .pf .shop_table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pf .shop_table td:last-child, .pf .shop_table th:last-child { text-align: right; }
.pf .shop_table .order-total th, .pf .shop_table .order-total td { border-top: 2px solid #071B3D; border-bottom: 0; font-weight: 700; }
.pf .shop_table .order-total .amount { font: 800 26px 'Noto Sans Thai', sans-serif; color: var(--blue); }
.pf #payment { margin-top: 12px; }
.pf .wc_payment_methods { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pf .wc_payment_method { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.pf .wc_payment_method label { font-weight: 600; margin-left: 6px; }
.pf .payment_box { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.pf .payment_box p { margin: 0; }
.pf #place_order { width: 100%; min-height: 60px; border: 0; border-radius: 14px; background: var(--blue); color: #fff; font: 700 18px 'Noto Sans Thai', sans-serif; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(0, 80, 255, .85); }
.pf .woocommerce-terms-and-conditions-wrapper { font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
.pf .blockUI.blockOverlay { background: rgba(255, 255, 255, .6) !important; }

/* pagination and other WordPress bits */
.pif-pager { margin-top: 28px; }
.pif-pager .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pif-pager .page-numbers { min-width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.pif-pager .current { background: var(--blue); border-color: var(--blue); color: #fff; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#wpadminbar { z-index: 99999; }

/* order received */
.pif-thanks .woocommerce-notice--success { font: 800 clamp(22px, 3vw, 30px)/1.3 'Noto Sans Thai', sans-serif; color: #071B3D; margin: 0 0 20px; }
.pif-thanks .woocommerce-order-overview { list-style: none; margin: 0 0 24px; padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; background: var(--alt); border-radius: 14px; font-size: 13px; color: var(--muted); }
.pif-thanks .woocommerce-order-overview strong { display: block; color: #071B3D; font-size: 15px; margin-top: 2px; }
.pif-thanks h2 { font-size: 20px; margin: 24px 0 12px; color: #071B3D; }
.pif-thanks address { font-style: normal; line-height: 1.7; }
.pif-thanks .wc-bacs-bank-details { list-style: none; padding: 0; }

@media (max-width: 760px) {
  .pf ol[aria-label] { flex-wrap: nowrap !important; gap: 6px !important; }
  .pf ol[aria-label] > li[aria-hidden] { width: 14px !important; flex: none; }
  .step { font-size: 12.5px; gap: 6px; }
  .pif-card { padding: 16px; }
}

.pf p:has(> .sc-interp:empty) { display: none; }
.pf a.pname, .pf a.fname { justify-content: flex-start; text-align: left; }
.pf a.pname { display: block; }
.pif-entry #et-boc > .et-l > p:first-child { max-width: 1280px; margin: 12px auto 0; padding: 0 24px; font-size: 13px; color: var(--muted); }

/* intro lasts about a second */
.in-word b { animation-duration: .45s; }
.in-word span:nth-child(1) b { animation-delay: 0s !important; }
.in-word span:nth-child(2) b { animation-delay: .06s !important; }
.in-word span:nth-child(3) b { animation-delay: .12s !important; }
.in-sub { animation-duration: .35s; animation-delay: .15s; }
.in-bar i { animation-duration: .55s; animation-delay: .05s; }
.intro.out .in-panels i { animation-duration: .4s; }
.intro.out .in-panels i:nth-child(2) { animation-delay: .03s; }
.intro.out .in-panels i:nth-child(3) { animation-delay: .06s; }
.intro.out .in-panels i:nth-child(4) { animation-delay: .09s; }
.intro.out .in-center { animation-duration: .18s; }

/* Login and language live only in the menu, so the header has a menu button at every width. */
.head-tools .acct-btn, .head-tools .langs, .head-tools .lang-mini { display: none; }
.head-tools .menu-btn { display: inline-flex; }
.mm-acct { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; flex: none; }
.mm-acct .btn { min-height: 48px; padding: 0 8px; font-size: 15px; }

/* login and register */
.pif-auth { max-width: 480px; margin: 0 auto; border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: #fff; box-shadow: 0 24px 48px -36px rgba(7, 27, 61, .45); }
.pif-auth-lead { margin: 0 0 16px; color: var(--muted); line-height: 1.6; font-size: 14px; text-align: center; }
.pif-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 20px; background: #F3F7FD; border-radius: 12px; }
.pif-auth-tab { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 9px; color: var(--muted); font-weight: 600; text-decoration: none; }
.pif-auth-tab.on { background: var(--blue); color: #fff; }
.pif-auth-tab.on:hover { color: #fff; }
.pif-auth-pane[hidden] { display: none; }
.pif-auth .button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 12px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font: 700 16px 'Noto Sans Thai', 'Sarabun', sans-serif; cursor: pointer; }
.pif-auth .button:hover { background: #071B3D; }
.pif-auth .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; min-height: 32px; }
.pif-auth .lost_password { margin: 12px 0 0; text-align: center; font-size: 14px; }
.pif-auth .woocommerce-privacy-policy-text { font-size: 13px; color: var(--muted); line-height: 1.6; }
.pif-auth-guest { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--muted); }
.pf .password-input { display: block; position: relative; }
.pf .show-password-input { position: absolute; right: 6px; top: 50%; width: 36px; height: 36px; margin-top: -18px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.pf .show-password-input::after { content: "\1F441"; font-size: 15px; }

/* account pages after logging in */
.woocommerce-account .pif-prose { max-width: 1040px; }
.pf .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pf .woocommerce-MyAccount-navigation a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.pf .woocommerce-MyAccount-navigation .is-active a { background: var(--blue); border-color: var(--blue); color: #fff; }
.pf .woocommerce-MyAccount-content a.button, .pf .woocommerce-MyAccount-content button.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; }
.pf .woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.pf .woocommerce-orders-table { width: 100%; border-collapse: collapse; }
.pf .woocommerce-orders-table th, .pf .woocommerce-orders-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.prose .pif-auth-tab, .prose .woocommerce-MyAccount-navigation a, .prose .button { text-decoration: none; }
.prose .pif-auth-tab.on { color: #fff; }

/* optional login and coupon forms at checkout */
.pf .woocommerce-form-login-toggle .woocommerce-info, .pf .woocommerce-form-coupon-toggle .woocommerce-info { line-height: 1.5; }
.pf .woocommerce-info a { color: var(--blue); font-weight: 700; white-space: nowrap; }
.pf .woocommerce-checkout form.login, .pf .woocommerce-checkout form.checkout_coupon, .pf form.woocommerce-form-login.login:not(.pif-auth form), .pf form.checkout_coupon { max-width: 560px; margin: 0 0 16px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.pf form.woocommerce-form-login.login:not(.pif-auth form) > p:first-child, .pf form.checkout_coupon > p:first-child { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.pf form.woocommerce-form-login.login:not(.pif-auth form) > p:empty { margin: 0; }
.pf form.woocommerce-form-login.login .form-row-first, .pf form.woocommerce-form-login.login .form-row-last { width: 100%; float: none; }
.pf form.woocommerce-form-login.login:not(.pif-auth form) .button, .pf form.checkout_coupon .button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 10px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font: 700 16px 'Noto Sans Thai', 'Sarabun', sans-serif; cursor: pointer; }
.pf form.woocommerce-form-login.login:not(.pif-auth form) .button:hover, .pf form.checkout_coupon .button:hover { background: #071B3D; }
.pf form.woocommerce-form-login.login:not(.pif-auth form) .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.pf form.woocommerce-form-login.login:not(.pif-auth form) .lost_password { margin: 12px 0 0; text-align: center; font-size: 14px; }
.pf form.checkout_coupon .input-text { width: 100%; }
.pif-cart-empty .mobile-bar { display: none !important; }

/* Light look: the design file's navy and charcoal sections, turned light. Inline colours in views/ are generated, so they are matched here. */
.topbar { background: #EAF2FF; color: #33415C; }
.topbar a { color: #0B1630; }
.topbar a:hover { color: var(--blue); }
.hero, .pg-hero, section[style*="background: #071B3D"] { background: linear-gradient(180deg, #E4EEFF 0%, #F6F9FF 100%) !important; color: #071B3D !important; }
.hero-grid, .pg-hero::before { background-image: linear-gradient(rgba(7,27,61,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(7,27,61,.05) 1px, transparent 1px); }
.hero .eyebrow, .eyebrow.w { color: #0041D1; background: rgba(0,80,255,.1); }
.hero-nav { border-top-color: rgba(7,27,61,.14); }
.co { background: #F3F7FD; color: #071B3D; }
.co > .co-bg, .vband .co-bg { opacity: .1; }
.vband { background: #EAF2FF; }
.vband-in { color: #071B3D !important; }
.vband-in small { color: #33415C; }
.foot { background: #F3F7FD !important; color: #33415C !important; border-top: 1px solid var(--line); }
.foot a, .foot button.fl { color: #33415C; }
.foot a:hover, .foot button.fl:hover { color: var(--blue); }

.hero [style*="color: #fff"], .pg-hero [style*="color: #fff"], section[style*="background: #071B3D"] [style*="color: #fff"], .co > .wrap [style*="color: #fff"], .foot [style*="color: #fff"] { color: #071B3D !important; }
.hero [style*="#C7D6F2"], .pg-hero [style*="#C7D6F2"], .pg-hero [style*="#DDE7F8"], section[style*="background: #071B3D"] [style*="#C7D6F2"], .co > .wrap [style*="#DDE7F8"], .sum [style*="#C7D6F2"] { color: #33415C !important; }

.hero .btn-white, .pg-hero .btn-white, .co .btn-white, section[style*="background: #071B3D"] .btn-white { background-color: var(--blue); color: #fff; border-color: var(--blue); }
.hero .btn-white:hover, .pg-hero .btn-white:hover, .co .btn-white:hover, section[style*="background: #071B3D"] .btn-white:hover { color: #fff; }
.hero .btn-ghostw, .pg-hero .btn-ghostw, .co .btn-ghostw, section[style*="background: #071B3D"] .btn-ghostw { background-image: linear-gradient(var(--blue), var(--blue)); color: var(--blue); border-color: var(--blue); }
.hero .btn-ghostw:hover, .pg-hero .btn-ghostw:hover, .co .btn-ghostw:hover, section[style*="background: #071B3D"] .btn-ghostw:hover { color: #fff; border-color: var(--blue); }

.vos-home { background: #FFF6EF; color: #1F2125; }
.vos-chip, .vos-tag, .vos-home .vos-label { color: #A8430A; }
.vos-home [style*="color: #fff"] { color: #1F2125 !important; }
.vos-home .vos-points span { border-color: #F3D9C6; background: #fff; color: #1F2125; }
.vos-home .vos-step { background: #fff; border-color: #F3D9C6; }
.vos-home .vos-step h3 { color: #1F2125; }
.vos-home .vos-step p { color: #55595F; }
.vos-home .btn-ghostw { background-image: linear-gradient(#1F2125, #1F2125); color: #1F2125; border-color: #1F2125; }
.vos-home .btn-ghostw:hover { color: #fff; border-color: #1F2125; }

.sum { background: #fff; color: #0B1630; border: 1px solid var(--line); box-shadow: 0 24px 48px -32px rgba(7,27,61,.35); }
.sum-grid { display: none; }
.sum [style*="dashed"] { border-top-color: var(--line) !important; }

.in-panels i { background: #EAF2FF; border-right-color: rgba(7,27,61,.06); }
.in-center { color: #071B3D; }
.in-sub { color: #33415C; }
.in-bar { background: rgba(7,27,61,.12); }
.in-bar i { background: var(--blue); }
.in-skip { border-color: rgba(7,27,61,.3); color: #071B3D !important; }
.in-skip:hover { background: #071B3D; color: #fff !important; }

/* Touch screens keep the hover state after a tap, and the fill does not animate there. */
@media (hover: none) {
	.hero .btn-ghostw:hover, .pg-hero .btn-ghostw:hover, .co .btn-ghostw:hover, section[style*="background: #071B3D"] .btn-ghostw:hover { color: var(--blue); }
	.vos-home .btn-ghostw:hover { color: #1F2125; }
}

.s-eye { color: #0041D1; }
.s-bn-chip { border-color: var(--line); background: #fff; color: #071B3D !important; }
.s-bn-chip:hover { background: var(--blue); color: #fff !important; border-color: var(--blue); }
.prog { color: #4A5875 !important; }
.prog:hover, .prog.on { color: #071B3D !important; }
.prog i { background: rgba(7,27,61,.14); }
.prog b { background: var(--blue); }
.arr-btn { border-color: rgba(7,27,61,.3); color: #071B3D !important; }
.arr-btn:hover { color: #fff !important; }
.hero .s-text [style*="color"] { color: #33415C; }
.vos-home [style*="#FF8A3D"] { color: #A8430A !important; }
.vos-home [style*="#C9CCD1"] { color: #4B4F56 !important; }
.hero .ctr { color: #33415C; }
.foot .soc a { color: #071B3D !important; border-color: var(--line); }
.foot .soc a:hover { color: #fff !important; border-color: var(--blue); }

.sum .srow { color: #4A5875; }
.sum .srow b { color: #071B3D; }
.sum .tot { color: #071B3D; }
.sum .ghost-w { border-color: var(--blue); color: var(--blue) !important; }
.sum .ghost-w:hover { background: #EAF2FF; border-color: var(--blue); }
.sum .tlist { color: #33415C; }
.sum .tlist svg { stroke: var(--blue); }

/* CAPPY keeps its own colours; only its two brown sections turn light. */
.c2-rev-sec { background: #FFF4E0; color: #4A2E1C; }
.c2-rev-sec .c2-h2 { color: #4A2E1C; }
.c2-rev { background: #fff; border-color: #4A2E1C; box-shadow: 6px 6px 0 #4A2E1C; }
.c2-rev:hover { box-shadow: 9px 9px 0 #4A2E1C; }
.c2-rev h4 { color: #4A2E1C; }
.c2-rev p { color: #6B4A33; }
.c2-foot { background: #FFF4E0; color: #6B4A33; }
.c2-foot .c2-logo-t, .c2-foot a, .c2-foot b, .c2-foot h4, .c2-foot h5 { color: #4A2E1C; }
.c2-rev-sec [style*="#FFF4E0"] { color: #4A2E1C !important; }
.c2-rev-sec [style*="#E8C9A6"], .c2-rev li { color: #6B4A33 !important; }
.c2-foot .c2-logo { color: #4A2E1C; }
.c2-rev .c2-val.o { color: #A85400; }
.c2-rev .c2-val.m { color: #1A6F61; }
.c2-rev .c2-val.g { color: #2A7538; }
.sum .paychips span { border-color: var(--line); color: #33415C; }
.s-bn-glow { opacity: .22; }
.s-bn-card { box-shadow: 0 24px 48px -28px rgba(7,27,61,.45); }

/* Sales layout for the shop, category and product pages. */
.shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.shop-main { min-width: 0; }

.shop-side { display: flex; flex-direction: column; gap: 14px; }
.side-box { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.side-h { margin: 0; font-size: 16px; font-weight: 700; color: #071B3D; }
.side-cats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.side-cats a { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 40px; padding: 6px 10px; border-radius: 8px; color: #0B1630; text-decoration: none; font-size: 14px; font-weight: 500; }
.side-cats a:hover { background: #EAF2FF; color: var(--blue); }
.side-cats a.on { background: var(--blue); color: #fff; }
.side-cats small { font-size: 12px; opacity: .8; }
.side-range { display: flex; align-items: center; gap: 6px; }
.side-range .field { width: 100%; min-width: 0; min-height: 44px; padding: 0 10px; }
.side-clear { font-size: 13px; color: var(--blue); text-align: center; }
.shop-sort { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.shop-sort .field { width: auto; min-height: 44px; padding: 0 12px; font-weight: 500; }
.p-save { width: 100%; font-size: 13px; font-weight: 600; color: #B4231F; }
.pd-quote { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.sell-strip { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: #F6F9FF; }
.sell-steps ol { list-style: none; counter-reset: pif; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sell-steps li { counter-increment: pif; display: flex; gap: 10px; align-items: center; line-height: 1.5; color: #0B1630; }
.sell-steps li::before { content: counter(pif); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font: 700 14px/28px 'Noto Sans Thai', sans-serif; text-align: center; }
.sell-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sell-stats strong { display: block; font-size: 24px; font-weight: 800; color: #071B3D; }
.sell-stats span { font-size: 13px; line-height: 1.4; color: #4A5875; }
@media (min-width: 992px) { .catnav { display: none; } .shop-main .pgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
@media (max-width: 991px) {
	.shop-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.shop-side { position: static; }
	.side-cats { display: none; }
	.side-price { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; }
	.side-price .side-h { width: 100%; font-size: 14px; }
	.side-range { flex: 1 1 200px; }
	.side-price .btn { flex: 0 0 auto; min-height: 44px; }
	.side-clear { width: 100%; }
	.sell-strip { padding: 18px; }
}

/* Home page layout, hand-written. */
.home-statement { background: #fff; border-bottom: 1px solid var(--line); padding: 44px 0 20px; }
.home-state { max-width: 900px; margin: 0 auto 24px; text-align: center; font-size: clamp(22px, 2.8vw, 34px); font-weight: 800; line-height: 1.35; color: #071B3D; text-wrap: balance; }
.home-statement .stat { text-align: center; }
.home-statement .stat strong { color: var(--blue) !important; }
.pif-view-home .cgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pif-view-home .ctile { flex-direction: column-reverse; justify-content: flex-end; border-radius: 20px; }
.pif-view-home .ctile .im { aspect-ratio: 4 / 5; width: 100%; }
.pif-view-home .ctile-all { display: none; }
.f-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.f-acts .btn { min-height: 42px; padding: 0 6px; font-size: 13px; }
.home-works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-work { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; text-decoration: none; background: var(--alt); }
.home-work img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.home-work:hover img { transform: scale(1.05); }
.home-work span { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.94); color: #071B3D; font-size: 12px; font-weight: 600; }
.home-contact { display: flex; flex-wrap: wrap; gap: 32px; padding-top: min(64px, var(--spv, 64px)); padding-bottom: min(64px, var(--spv, 64px)); align-items: flex-start; }
.home-contact-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.home-contact-text p { margin: 0; color: #4A5875; }
.home-contact-form { flex: 1 1 420px; min-width: 0; background: #fff; }
.home-contact-form textarea { min-height: 110px; }
@media (max-width: 991px) {
	.pif-view-home .cgrid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
	.pif-view-home .ctile { flex: 0 0 62%; scroll-snap-align: start; }
	.home-works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.home-statement { padding-top: 28px; }
}

/* Home page solutions tabs. */
.home-solutions { border-top: 1px solid var(--line); padding-top: min(56px, var(--spv, 56px)); }
.sol-tabs { display: flex; gap: 8px; overflow-x: auto; margin-top: 16px; padding-bottom: 12px; scrollbar-width: none; }
.sol-tabs::-webkit-scrollbar { display: none; }
.sol-tab { flex: none; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: #071B3D; font-weight: 600; font-size: 14px; cursor: pointer; }
.sol-tab:hover { border-color: var(--blue); color: var(--blue); }
.sol-tab.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.sol-panel { display: none; }
.sol-panel.on { display: block; }
.sol-panel > section { border-top: 0 !important; border-bottom: 0 !important; }

/* Home page: shorter on phones. Everything stays in the page; long lists scroll sideways. */
@media (max-width: 640px) {
	.pif-view-home .nia-grid, .pif-view-home .blog-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; }
	.pif-view-home .nia-grid > *, .pif-view-home .blog-grid > * { flex: 0 0 82%; scroll-snap-align: start; }
	.pif-view-home .port-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
	.pif-view-home .port-stats > div { padding: 14px !important; }
	.pif-view-home .port-stats p { font-size: 12.5px; }
}

/* Two-row header on larger screens: logo left with icons on the right, then a full-width menu band. */
@media (min-width: 1000px) {
	.head-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 20px; padding-top: 10px; padding-bottom: 10px; }
	.head-row .logo-btn { grid-column: 1; grid-row: 1; }
	.head-row .head-tools { grid-column: 2; grid-row: 1; justify-content: flex-end; flex-wrap: nowrap; gap: 6px; }
	.head-row .search { display: none; }
	.head.s-open .head-row .search { display: block; grid-column: 1 / -1; grid-row: 2; }
	.head-tools .s-toggle { display: inline-flex; }
	.head-tools .icon-btn { border: 0; background: none; color: var(--blue); }
	.head-tools .icon-btn:hover { background: #EAF2FF; color: var(--blue); }
	.head-tools .cart-btn { border: 0; background: none; color: var(--blue) !important; padding: 0 10px; min-height: 44px; }
	.head-tools .cart-btn:hover { background: #EAF2FF; color: var(--blue) !important; }
	.head-tools .cart-btn .hide-sm { display: none; }
	.mainnav { background: var(--blue); border-top: 0; }
	.mn-row { justify-content: center; gap: 0; min-height: 52px; align-items: stretch; }
	.pf .mn { min-height: 52px; padding: 0 clamp(10px, 1.5vw, 22px); border-radius: 0; color: #fff; font-weight: 500; }
	.pf .mn::after { display: none; }
	.pf .mn:hover { background: rgba(7,27,61,.22); color: #fff; }
	.pf .mn.on { background: #071B3D; color: #fff; }
	.mn.right { margin-left: 0; }
	.pf .mn.prod { order: 99; margin: 0 0 0 auto; padding: 0 clamp(14px, 1.8vw, 26px); background: #071B3D; box-shadow: none; font-weight: 700; }
	.pf .mn.prod:hover, .pf .mn.prod.open { background: #0B2A5E; }
	.mn.prod::before { display: none; }
}

/* Easier reading: body text in Sarabun at a larger size, with calmer headings. The design file's sizes are matched here. */
.pf { font-size: 16.5px; -webkit-font-smoothing: antialiased; }
.pf h1, .pf h2, .pf h3, .pf h4 { font-weight: 700 !important; letter-spacing: 0 !important; line-height: 1.35 !important; }
.pf .disp { font-weight: 700 !important; letter-spacing: 0; }
.pf p, .pf li, .pf dd, .faq-a { line-height: 1.75; }
.pf .topbar { font-size: 14.5px; }
.pf .mn { font-size: 15.5px; }
.pf .field { font-size: 16px; }
.pf .flabel { font-size: 15px; }
.pf .eyebrow { font-size: 13px; letter-spacing: .06em; }
.pf .pname { font-size: 16px; line-height: 1.5; }
.pf .th, .pf .foot a, .pf .foot button.fl { font-size: 15.5px; }
.pf .stat p { font-size: 15.5px; }
.pf .tag { font-size: 12px; letter-spacing: .04em; }
.pf .sell-stats span, .pf .side-cats a { font-size: 15px; }
.pf [style*="font-size: 12px"] { font-size: 13.5px !important; }
.pf [style*="font-size: 13px"] { font-size: 14.5px !important; }
.pf [style*="font-size: 14px"] { font-size: 15.5px !important; }
.pf [style*="font: 600 11px"] { font-size: 12.5px !important; letter-spacing: .06em !important; }
@media (max-width: 640px) {
	.pf { font-size: 16px; }
	.pf .pname { font-size: 15px; }
	.pf .stat p { font-size: 14px; }
}

/* Balance: the full light look was too bright, so the frame of the page and a few bands go back to the brand's dark colours. */
.pf { --line: #C6D3E8; }
.topbar { background: #071B3D; color: #C7D6F2; }
.topbar a { color: #fff; }
.topbar a:hover { color: #8DB4FF; }
.hero, .pg-hero, section[style*="background: #071B3D"] { background: linear-gradient(180deg, #C9DBFF 0%, #E6EEFF 100%) !important; }
.pf [style*="background: #F3F7FD"], .co { background: #E7EEFA !important; }
.sell-strip { background: #E7EEFA; }

.foot { background: #071B3D !important; color: #C7D6F2 !important; border-top: 0; }
.foot a, .foot button.fl { color: #C7D6F2; }
.foot a:hover, .foot button.fl:hover { color: #fff; }
.foot [style*="color: #fff"] { color: #fff !important; }
.foot .soc a { color: #fff !important; border-color: rgba(255,255,255,.25); }
.foot .soc a:hover { color: #fff !important; border-color: var(--blue); }

.vband { background: #071B3D; }
.vband .co-bg { opacity: .22; }
.vband-in { color: #fff !important; }
.vband-in small { color: #C7D6F2; }

.vos-home { background: #1F2125; color: #fff; }
.vos-chip, .vos-tag, .vos-home .vos-label { color: #FF8A3D; }
.vos-home [style*="color: #fff"] { color: #fff !important; }
.vos-home [style*="#FF8A3D"] { color: #FF8A3D !important; }
.vos-home [style*="#C9CCD1"] { color: #C9CCD1 !important; }
.vos-home .vos-points span { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.04); color: #fff; }
.vos-home .vos-step { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.vos-home .vos-step h3 { color: #fff; }
.vos-home .vos-step p { color: #B9BDC4; }
.vos-home .btn-ghostw { background-image: linear-gradient(#fff, #fff); color: #fff; border-color: rgba(255,255,255,.55); }
.vos-home .btn-ghostw:hover { color: #1F2125; border-color: #fff; }
@media (hover: none) { .vos-home .btn-ghostw:hover { color: #fff; } }

/* Rounded menu band with movement. */
@media (min-width: 1000px) {
	.mn-row { align-items: center; gap: 4px; min-height: 60px; }
	.pf .mn { min-height: 42px; border-radius: 999px; transition: background .25s, color .25s, transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
	.pf .mn::after { display: block; left: 0; right: 0; top: 0; bottom: 0; height: auto; border-radius: inherit; background: rgba(255,255,255,.2); opacity: 0; transform: scale(.7); transform-origin: center; transition: opacity .25s, transform .3s cubic-bezier(.2,.8,.2,1); }
	.pf .mn:hover { background: none; transform: translateY(-2px); }
	.pf .mn:hover::after { opacity: 1; transform: scale(1); }
	.pf .mn:active { transform: translateY(0) scale(.97); }
	.pf .mn.on { background: #071B3D; box-shadow: 0 8px 18px -10px rgba(7,27,61,.9); }
	.pf .mn.on::after, .pf .mn.on:hover::after, .pf .mn.prod::after { display: none; }
	.pf .mn.prod { padding: 0 clamp(16px, 1.8vw, 24px); background: #071B3D; box-shadow: 0 8px 18px -10px rgba(7,27,61,.9); }
	.pf .mn.prod:hover, .pf .mn.prod.open { background: #0B2A5E; }
	.mn.prod::before { display: block; border-color: rgba(255,255,255,.75); }
	.mn-grid { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
	.mn.prod:hover .mn-grid, .mn.prod.open .mn-grid { transform: rotate(90deg); }
	.mainnav { overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
	.pf .mn, .pf .mn::after, .mn-grid { transition: none; }
	.pf .mn:hover, .pf .mn:active { transform: none; }
	.mn.prod::before { animation: none; display: none; }
}

/* PIF Story showcase. */
.story-hero { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 15% 10%, #0B3BA8 0%, transparent 70%), linear-gradient(135deg, #071B3D 0%, #0A2A66 100%); color: #fff; }
.story-hero-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: center; min-height: 600px; padding-top: 48px; padding-bottom: 48px; }
.story-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; animation: storyRise .8s cubic-bezier(.2,.8,.2,1) both; }
.story-eyebrow { align-self: flex-start; padding: 6px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .12em; color: #BFD3FF; }
.pf .story-hero h1 { margin: 0; font-size: clamp(38px, 5.4vw, 72px); line-height: 1.15 !important; color: #fff; background: linear-gradient(90deg, #fff 0%, #8DB4FF 55%, #fff 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: storyShine 7s linear infinite; }
.story-copy > p { margin: 0; max-width: 620px; font-size: 18px; line-height: 1.75; color: #D5E1F7; }
.story-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.story-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.story-stat { padding: 14px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(255,255,255,.07); backdrop-filter: blur(6px); transition: transform .3s, background .3s; }
.story-stat:hover { transform: translateY(-3px); background: rgba(255,255,255,.13); }
.story-stat strong { display: block; font-size: clamp(26px, 3vw, 38px); color: #fff; line-height: 1.2; }
.story-stat span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.5; color: #C7D6F2; }
.story-wall { display: flex; gap: 14px; height: 620px; margin-block: -48px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%); }
.sw-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; animation: storyUp 46s linear infinite; }
.sw-col-1 { animation-direction: reverse; animation-duration: 54s; }
.story-wall:hover .sw-col { animation-play-state: paused; }
.sw-col img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: rgba(255,255,255,.08); }
.story-works { padding-top: min(40px, var(--spv, 40px)); padding-bottom: min(80px, var(--spv, 80px)); }
.story-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; margin-bottom: 24px; }
.story-hint { font-size: 14.5px; color: #4A5875; }
.story-works .ftabs { border: 0; gap: 6px; flex-wrap: wrap; overflow: visible; background: none; }
.story-works .ftab { border: 1.5px solid var(--line); border-radius: 999px; min-height: 44px; padding: 0 18px; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.story-works .ftab:hover { border-color: var(--blue); transform: translateY(-2px); }
.story-works .ftab.on { background: var(--blue); border-color: var(--blue); color: #fff !important; box-shadow: 0 10px 22px -12px rgba(0,80,255,.9); }
.pf .proj-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 14px; background: none; border: 0; }
.pf .proj { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 1; overflow: hidden; border-radius: 18px; background: var(--alt); cursor: zoom-in; animation: none; opacity: 1; box-shadow: 0 16px 34px -26px rgba(7,27,61,.8); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, box-shadow .3s, opacity .7s; }
.pf .proj.big { grid-column: span 2; grid-row: span 2; }
.pf .proj:hover { box-shadow: 0 30px 50px -26px rgba(7,27,61,.9); }
.pf .proj > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf .proj-grid.story-motion .proj:not(.in) { opacity: 0; transform: translateY(36px) scale(.95); }
.pf .proj-grid.story-motion .proj.in { transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s, box-shadow .3s; }
.pf .proj-grid.story-motion .proj.in:hover { transition: transform .15s ease-out, box-shadow .3s; }
.pf .proj-cap { position: absolute; left: 0; right: 0; bottom: 0; top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 44px 14px 14px; background: linear-gradient(180deg, transparent, rgba(7,27,61,.92)); color: #fff; text-align: left; transform: none; opacity: 1; transition: padding .3s; }
.pf .proj:hover .proj-cap { padding-bottom: 20px; }
.pf .proj-cap b { color: #fff; font-size: 15px; font-weight: 600; line-height: 1.4; }
.pf .proj.big .proj-cap b { font-size: 21px; }
.pf .proj-tag { padding: 3px 10px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; }
.pf .proj::after { content: '+'; position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--blue); font: 500 24px/36px sans-serif; text-align: center; opacity: 0; transform: scale(.5) rotate(-90deg); transition: opacity .25s, transform .35s cubic-bezier(.2,.8,.2,1); }
.pf .proj:hover::after, .pf .proj:focus-visible::after { opacity: 1; transform: none; }
@keyframes storyUp { to { transform: translateY(calc(-50% - 7px)); } }
@keyframes storySide { to { transform: translateX(calc(-50% - 5px)); } }
@keyframes storyRise { from { opacity: 0; transform: translateY(24px); } }
@keyframes storyShine { to { background-position: -220% 0; } }
@media (max-width: 991px) {
	.story-hero-in { grid-template-columns: minmax(0, 1fr); gap: 24px; min-height: 0; padding-top: 32px; padding-bottom: 28px; }
	.story-wall { flex-direction: column; gap: 10px; height: auto; margin: 0 -16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
	.sw-col { flex: none; flex-direction: row; gap: 10px; width: max-content; animation-name: storySide; }
	.sw-col img { width: 120px; flex: none; border-radius: 12px; }
	.pf .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.pf .proj-cap { padding: 32px 10px 10px; }
	.pf .proj-cap b { font-size: 13.5px; }
	.pf .proj.big .proj-cap b { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
	.sw-col, .story-copy, .pf .story-hero h1 { animation: none !important; }
	.pf .story-hero h1 { -webkit-text-fill-color: #fff; background: none; }
	.pf .proj { transform: none; }
}

/* PIF Story showcase, second pass: photo wall behind the text, figures in a row, logo band, clean photo grid. */
.story-hero { background: #06163A; isolation: isolate; }
.story-glow { position: absolute; z-index: 0; width: 620px; height: 620px; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; animation: storyDrift 16s ease-in-out infinite alternate; }
.story-glow-a { left: -160px; top: -220px; background: #0050FF; }
.story-glow-b { right: 18%; bottom: -320px; background: #1E88E5; animation-delay: -6s; }
.story-hero .story-wall { position: absolute; z-index: 0; top: -30%; right: -4%; bottom: auto; width: 56%; height: 170%; margin: 0; gap: 16px; transform: rotate(8deg); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%); opacity: .95; }
.story-hero .sw-col { gap: 16px; }
.story-hero .sw-col img { border-radius: 20px; }
.story-hero .sw-col-2 { animation-duration: 62s; }
.story-hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 44px; min-height: 660px; padding-top: 72px; padding-bottom: 40px; }
.story-copy { max-width: 620px; gap: 20px; }
.pf .story-hero h1 { font-size: clamp(44px, 7vw, 92px); line-height: 1.1 !important; }
.story-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); max-width: 880px; }
.story-stat { padding: 0 22px; border: 0; border-left: 1px solid rgba(255,255,255,.18); border-radius: 0; background: none; backdrop-filter: none; }
.story-stat:first-child { padding-left: 0; border-left: 0; }
.story-stat:hover { transform: none; background: none; }
.story-stat strong { font-size: clamp(30px, 3.6vw, 48px); background: linear-gradient(180deg, #fff, #9CBDFF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.story-stat span { font-size: 14px; line-height: 1.45; }

.story-clients { padding: 40px 0 36px; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.pf .story-clients-h { margin: 0 0 22px; text-align: center; font-size: 15px; font-weight: 600 !important; letter-spacing: .08em !important; color: #4A5875; }
.story-marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.story-marquee-track { display: flex; gap: 20px; width: max-content; animation: storySide 44s linear infinite; }
.story-marquee:hover .story-marquee-track { animation-play-state: paused; }
.story-marquee img { flex: none; width: 120px; height: 120px; object-fit: cover; border-radius: 22px; border: 1px solid var(--line); background: #fff; filter: saturate(.85); transition: filter .3s, transform .3s; }
.story-marquee img:hover { filter: none; transform: translateY(-4px) scale(1.04); }

.story-works { padding-top: min(72px, var(--spv, 72px)); padding-bottom: min(80px, var(--spv, 80px)); }
.story-head { max-width: 760px; margin: 0 auto 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.pf .story-head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 44px); color: #071B3D; }
.story-head p { margin: 0; color: #4A5875; }
.story-bar { justify-content: center; margin-bottom: 32px; }
.story-works .ftabs { justify-content: center; }
.story-hint { margin: 24px 0 0; text-align: center; }
.pf .proj-grid { gap: 16px; }
.pf .proj { border-radius: 22px; box-shadow: none; }
.pf .proj > img { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.pf .proj:hover { box-shadow: 0 34px 60px -30px rgba(7,27,61,.75); }
.pf .proj.proj-logo { background: #fff; outline: 1px solid var(--line); outline-offset: -1px; }
.pf .proj.proj-logo > img { object-fit: contain; }
@media (hover: hover) {
	.pf .proj-cap { padding: 60px 16px 16px; background: linear-gradient(180deg, transparent, rgba(6,22,58,.94)); opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .4s cubic-bezier(.2,.8,.2,1); }
	.pf .proj:hover .proj-cap, .pf .proj:focus-visible .proj-cap { opacity: 1; transform: none; padding-bottom: 16px; }
	.pf .proj.big .proj-cap { opacity: 1; transform: none; }
}
@keyframes storyDrift { to { transform: translate(90px, 50px) scale(1.15); } }
@media (max-width: 991px) {
	.story-hero .story-wall { position: relative; top: auto; right: auto; width: auto; height: auto; margin: 0; padding-top: 28px; transform: none; opacity: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
	.story-hero .sw-col-2 { display: none; }
	.story-hero-in { min-height: 0; gap: 28px; padding-top: 28px; padding-bottom: 36px; }
	.story-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
	.story-stat:nth-child(odd) { padding-left: 0; border-left: 0; }
	.story-stat { padding: 0 14px; }
	.story-marquee img { width: 88px; height: 88px; border-radius: 16px; }
	.pf .proj-grid { gap: 10px; }
	.story-clients { padding: 28px 0; }
}
@media (prefers-reduced-motion: reduce) {
	.story-glow, .story-marquee-track { animation: none !important; }
	.story-marquee-track { width: auto; flex-wrap: wrap; justify-content: center; }
	.story-copyimg { display: none; }
}
.story-hero .story-wall { width: 50%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, #000 42%); }
.story-stats { max-width: 720px; }
@media (max-width: 991px) {
	.story-hero .story-wall { width: auto; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .story-marquee .story-copyimg { display: none; } }

/* The sidebar only follows the page when all of it fits on screen. */
@media (min-width: 992px) and (min-height: 700px) { .shop-side { position: sticky; top: 150px; } }
/* Cards under a still pointer should not lift and drop while the page scrolls past. */
body.is-scrolling main { pointer-events: none; }

/* Shop heading: title on the left, one random product at a time on the right. */
.shop-hero { background: linear-gradient(120deg, #071B3D 0%, #0B3BA8 100%); color: #fff; }
.shop-hero-in { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 32px; padding-bottom: 32px; }
.shop-hero-copy { flex: 1 1 0; min-width: 0; max-width: 620px; display: flex; flex-direction: column; gap: 10px; }
.pf .shop-hero .crumb, .pf .shop-hero .crumb a, .pf .shop-hero .crumb button { color: #C7D6F2; }
.pf .shop-hero .crumb a:hover { color: #fff; }
.pf .shop-hero h1 { margin: 0; font-size: clamp(30px, 3.6vw, 48px); color: #fff; }
.shop-hero-copy p { margin: 0; color: #D5E1F7; line-height: 1.7; }
.shop-hero-note { font-size: 14px; color: #BFD3FF; }
.shop-stage { position: relative; flex: 0 0 min(50%, 520px); height: 200px; }
.pf .ss-slide { position: absolute; inset: 0; display: flex; align-items: center; gap: 22px; color: #fff; text-decoration: none; opacity: 0; visibility: hidden; transform: translateX(22px); transition: opacity .6s, transform .7s cubic-bezier(.2,.8,.2,1), visibility 0s .6s; }
.pf .ss-slide.on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s, transform .7s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.ss-slide img { flex: none; width: 200px; height: 200px; object-fit: cover; border-radius: 18px; box-shadow: 0 24px 44px -24px rgba(0,0,0,.8); }
.ss-b { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ss-name { font-size: 19px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ss-b strong { font-size: 30px; color: #fff; }
.pf .ss-slide:hover .ss-name { text-decoration: underline; }
@media (max-width: 760px) {
	.shop-hero-in { flex-direction: column; align-items: stretch; gap: 16px; padding-top: 18px; padding-bottom: 20px; }
	.shop-hero-copy { flex: none; max-width: none; }
	.shop-hero-copy p { display: none; }
	.shop-stage { flex: none; height: 110px; }
	.pf .ss-slide { gap: 14px; }
	.ss-slide img { width: 110px; height: 110px; border-radius: 14px; }
	.ss-name { font-size: 15.5px; -webkit-line-clamp: 2; }
	.ss-b strong { font-size: 22px; }
}

/* Home page why-us block. */
.home-why { padding-top: min(72px, var(--spv, 72px)); padding-bottom: min(32px, var(--spv, 32px)); }
.bento { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; }
.bento-main { border-radius: 22px; padding: clamp(24px, 3vw, 40px); background: var(--blue); color: #fff; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.bento-main .eyebrow { align-self: flex-start; color: #fff; background: rgba(255,255,255,.18); }
.bento-main h2 { margin: 0; font-size: clamp(24px, 2.8vw, 36px); font-weight: 800; line-height: 1.25; color: #fff; }
.bento-main p { margin: 0; line-height: 1.7; color: #E2EBFF; }
.bento-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.bento-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 991px) {
	.bento { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.bento-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.bento-feats .feat { padding: 14px; }
	.bento-feats h3 { font-size: 15px !important; margin: 6px 0 4px !important; }
	.bento-feats p { font-size: 14.5px; line-height: 1.5 !important; }
	.home-work:nth-child(n+5) { display: none; }
}

/* Home page: company background and project photos. */
.bento-works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pf a.bento-work { position: relative; display: block; min-height: 270px; overflow: hidden; border-radius: 22px; background: #0A2A6E; color: #fff; text-decoration: none; box-shadow: 0 10px 26px -16px rgba(7, 27, 61, .2); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s cubic-bezier(.2, .8, .2, 1); }
.bento-work img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.bento-work::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 27, 61, 0) 42%, rgba(7, 27, 61, .92) 100%); }
.bento-work span { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 14px; display: flex; flex-direction: column; gap: 2px; }
.bento-work b { font-size: 17px; font-weight: 600; line-height: 1.35; color: #fff; }
.bento-work small { font-size: 14px; line-height: 1.4; color: #DCE6F8; }
@media (hover: hover) {
	.pf a.bento-work:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -26px rgba(7, 27, 61, .4); }
	.bento-work:hover img { transform: scale(1.05); }
}
@media (max-width: 640px) {
	.bento-works { gap: 10px; }
	.pf a.bento-work { min-height: 0; aspect-ratio: 1 / 1; border-radius: 16px; }
	.bento-work span { left: 10px; right: 10px; bottom: 8px; gap: 0; }
	.bento-work b { font-size: 14px; }
	.bento-work small { font-size: 12.5px; }
}

/* Home slides: their text was written for a dark background. */
.pif-view-home .s-desc { color: #33415C; }
.pif-view-home .s-num { -webkit-text-stroke-color: rgba(7,27,61,.14); }
.pif-view-home .sw.hl > span { color: #0041D1; }

/* Address in the top bar. The slogan gives way when the row gets tight. */
.topbar-addr { display: inline-flex; align-items: center; gap: 6px; }
.pf .topbar .wrap { flex-wrap: nowrap !important; }
.pf .topbar .wrap > span:last-child { flex: none; flex-wrap: nowrap !important; white-space: nowrap; }
.pf .topbar .wrap > span:first-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 1499px) { .pf .topbar .wrap > span:first-child { display: none; } .pf .topbar .wrap { justify-content: flex-end !important; } }

/* Phones already have the menu in the bottom bar, so the header doesn't repeat it. */
@media (max-width: 760px) { .head-tools .menu-btn { display: none; } }

/* Home page customer reviews: a slowly moving band, and the form under it. */
.home-reviews { padding-top: min(72px, var(--spv, 72px)); padding-bottom: min(40px, var(--spv, 40px)); }
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.reviews-band { overflow: hidden; padding: 4px 0 12px; }
.reviews-band.is-loop { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.reviews-track { display: flex; gap: 16px; width: max-content; margin: 0 auto; padding: 0 24px; }
.reviews-band.is-loop .reviews-track { margin: 0; animation: pif-reviews calc(var(--n) * 7s) linear infinite; }
.reviews-band.is-loop:hover .reviews-track, .reviews-band.is-loop:focus-within .reviews-track { animation-play-state: paused; }
@keyframes pif-reviews { to { transform: translateX(calc(-50% - 8px)); } }
/* The owner asked for the band to keep moving; it is slow and stops under the pointer. */
@media (prefers-reduced-motion: reduce) { .pf .reviews-band.is-loop .reviews-track { animation-duration: calc(var(--n) * 7s) !important; animation-iteration-count: infinite !important; } }
.review-card { flex: none; width: 320px; margin: 0; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid rgba(7, 27, 61, .07); border-radius: 20px; }
.review-stars { color: #E8A317; letter-spacing: 2px; font-size: 17px; }
.review-card blockquote { margin: 0; color: #0B1630; line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.review-card figcaption { font-size: 14px; font-weight: 600; color: #4A5875; }
.reviews-empty { margin: 0; color: #4A5875; }
.review-note { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; font-weight: 600; }
.review-note.ok { background: #E7F6EE; color: #1B6E45; }
.review-note.bad { background: #FEF3F2; color: #B42318; }
.review-form { max-width: 640px; margin: 28px 0 0; padding: 24px; display: none; flex-direction: column; gap: 14px; background: #fff; border: 1px solid rgba(7, 27, 61, .07); border-radius: 22px; scroll-margin-top: 160px; }
.review-form h3 { margin: 0; font-size: 20px; color: #071B3D; }
.review-form textarea { min-height: 110px; padding-top: 12px; }
.review-form .btn { align-self: flex-start; }
.review-hint { margin: 0; font-size: 14px; color: #4A5875; }
.review-rate { margin: 0; padding: 0; border: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.review-rate legend { padding: 0; margin-bottom: 4px; }
.review-rate input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.review-rate label { font-size: 30px; line-height: 1; color: #CBD5E1; cursor: pointer; }
.review-rate input:checked ~ label, .review-rate label:hover, .review-rate label:hover ~ label { color: #E8A317; }
.review-rate input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 640px) { .review-card { width: 270px; } .review-form { padding: 18px; } }
/* The form stays out of the way until "Write a review" is pressed, or after a failed attempt. */
.review-form:target, .review-form.is-open { display: flex; }
/* Reviews heading as a centred card, so the section stands out even before the first review. */
.pf .reviews-head { flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin-bottom: 28px; padding: clamp(28px, 4vw, 44px) 24px; text-align: center; background: #fff; border: 1px solid rgba(7, 27, 61, .07); border-radius: 28px; box-shadow: 0 10px 26px -16px rgba(7, 27, 61, .16); }
.pf .reviews-head .hs-h2 { margin: 0; }
.reviews-stars { font-size: 30px; letter-spacing: 4px; color: #E8A317; line-height: 1; }
.reviews-lead { max-width: 560px; margin: 0 0 6px; color: #33415C; font-size: 17px; line-height: 1.6; }
.pf .review-form { margin-left: auto; margin-right: auto; }
.pf .reviews-head .eyebrow { align-self: center; }
