:root {
  --blue: #0033b6;
  --ink: #101010;
  --ink-2: #171717;
  --ink-3: #252525;
  --line: #dedede;
  --light: #f5f5f5;
  --sale-red: #bf1638;
  --messenger-blue: #0033b6;
}

html { scroll-padding-top: 92px; scrollbar-gutter: stable; }
body { color: var(--ink); }

.header, .header.is-scrolled {
  inset: 0 0 auto;
  background: rgb(255 255 255 / 2%);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition: none;
}
.header__inner { height: 80px; width: min(1200px, 92%); }
.header .brand { min-width: 0; }
.header :is(.brand, .brand b, .header-cart, .nav a:not(.btn)) {
  color: var(--menu-ink, #fff);
  text-shadow: var(--menu-shadow, 0 1px 2px #000, 0 0 6px rgb(0 0 0 / 72%));
}
.header .brand img { width: 66px; height: 66px; flex: none; }
.header .brand span { font-size: clamp(1.1rem, 2.1vw, 1.5rem); line-height: 1.15; }
.header .nav { gap: clamp(.75rem, 2vw, 1.8rem); color: var(--menu-ink, #fff); }
.header .nav a:not(.btn):hover, .header .nav a[aria-current="page"] { color: var(--menu-active, #d8e6ff); }
.header .nav a.btn[href^="contact.html"] { color: #fff; }
.header .nav [aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .4em;
}
.header .burger span { background: var(--menu-ink, #fff); }

.language-switch {
  flex: none;
  margin-inline: .75rem;
  padding: .36rem .7rem;
  min-height: 36px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: #fff;
  color: var(--blue);
  font: 600 .85rem/1.2 "Kanit", sans-serif;
  cursor: pointer;
}
.language-switch:hover { background: var(--blue); color: #fff; }

.btn { border-radius: 8px; }
.btn--messenger, .float-messenger {
  background: var(--messenger-blue);
  border-color: var(--messenger-blue);
  color: #fff;
  box-shadow: none;
}
.btn--messenger:hover, .float-messenger:hover { background: #002b99; border-color: #002b99; }
.messenger-link { color: #0033b6; }
.contact__list .messenger-link { color: #b9ccff; }

.hero__overlay {
  background: linear-gradient(90deg, #000e, #0009 50%, #0002 100%);
}
.hero__content { padding-top: 120px; padding-bottom: 90px; }
.hero__intro { max-width: 760px; }
.section:not(.section--dark) .eyebrow { color: var(--blue); }
.stats { background: var(--blue); }
.section--dark, .footer { background: var(--ink); }
.page-hero { background: var(--blue); }
.page-hero__sub, .page-hero .crumb { color: #fff; }
.banner-cta { background: var(--blue); }
.card, .cats__col, .rental__item, .side__group, .pcard,
.product-photo, .product-layout > div, .product-description, .photo-dialog {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
}
.cats__col { border-top: 3px solid var(--blue); }
.card:hover, .pcard:hover { border-color: var(--blue); }
.card__img, .pcard__img { background: var(--light); }
.more, .map { border-color: #3b3b3b; }
.product-layout > div, .product-description { padding: clamp(1.25rem, 3vw, 2rem); }
.product-page .crumb { color: var(--ink); }
.product-photo { grid-template: minmax(0, 1fr) / minmax(0, 1fr); overflow: hidden; }
.tag { z-index: 1; background: var(--sale-red); }
.price .sale, .product-price:has(del) { color: var(--sale-red); }
.product-price del { color: var(--ink); }
:focus-visible { outline: 3px solid #557ff0; outline-offset: 3px; }

@media (max-width: 820px) {
  .header__inner { height: 72px; }
  .header .brand img { width: 56px; height: 56px; }
  .language-switch { margin-inline: auto .65rem; }
  .header .brand { margin-inline-end: .4rem; }
  .header .nav {
    position: absolute;
    top: 100%;
    gap: 0;
    background: var(--menu-dropdown, rgb(0 0 0 / 85%));
    border-bottom: 2px solid transparent;
    visibility: hidden;
    transform: translateY(-8px);
    opacity: 0;
    transition: transform .2s, opacity .2s, visibility .2s;
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
  }
  .header .nav.is-open { visibility: visible; transform: none; opacity: 1; }
  .hero__overlay { background: linear-gradient(180deg, #0005, #000d); }
}

@media (prefers-reduced-motion: no-preference) {
  :is(button, .btn, .float-messenger, .pcard, .nav a, .side li a, .more summary) {
    transition: scale 260ms cubic-bezier(.24, 1.65, .5, 1), color 160ms ease,
      background-color 160ms ease, border-color 160ms ease, transform 200ms ease;
  }
  :is(button, .btn, .float-messenger, .pcard, .nav a, .side li a, .more summary):not(:disabled):active {
    scale: .95;
    transition: scale 90ms ease-out;
  }
  :is(.pcard, .product-photo):active:not(:disabled) { scale: .98; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide, .btn, .card, .pcard, .header .nav, .reveal { transition: none; }
}


/* Homepage scroll film */
.hero {
  display: block;
  min-height: 0;
  overflow: visible;
  background: #09131c;
}
.hero--scroll { height: 235vh; height: 235svh; }
.hero__sticky {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.hero--scroll .hero__sticky { position: sticky; top: 0; }
.hero__frame, .hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__frame {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 63% center;
}
.hero__overlay { background: linear-gradient(90deg, #000e, #000a 39%, #0002 74%); }
.hero__scroll-progress {
  position: absolute;
  bottom: 1.4rem;
  left: 4%;
  color: #fff;
  font-size: .85rem;
  letter-spacing: .06em;
}
.hero__scroll-progress[hidden] { display: none; }
.hero__progress-track {
  width: 95px;
  height: 2px;
  margin-top: .45rem;
  background: #ffffff5c;
}
.hero__progress-fill {
  height: 100%;
  background: #fff;
  transform: scaleX(var(--hero-progress, 0));
  transform-origin: left;
}
@media (max-width: 820px) {
  .hero--scroll { height: 210vh; height: 210svh; }
  .hero__sticky { align-items: flex-end; }
  .hero__overlay { background: linear-gradient(180deg, #0002 15%, #0008 46%, #000f 100%); }
  .hero__content { padding-top: 6rem; padding-bottom: 5rem; }
}
@media (max-height: 450px) {
  .hero--scroll { height: auto; min-height: 0; }
  .hero__scroll-progress { display: none; }
}

/* Keep the film pinned while foreground cards travel with the document. */
.hero--story {
  --story-stage: 100svh;
  --story-travel: 400svh;
}
.hero--story.hero--scroll { height: calc(var(--story-stage) + var(--story-travel)); }
.hero--story .hero__sticky { min-height: 0; height: var(--story-stage); }
.hero--story .hero__overlay {
  background: linear-gradient(90deg, rgb(4 10 18 / 35%), transparent 74%);
}
.hero--story .hero__frame { object-position: 65% center; }
.hero--story .hero__content { position: relative; padding: 0; }
.story-chapter {
  width: min(100%, 470px);
  padding: clamp(1.2rem, 3.3vw, 2.3rem);
  border: 1px solid rgb(220 240 255 / 52%);
  border-radius: clamp(22px, 4vw, 34px);
  background: linear-gradient(150deg, rgb(35 54 78 / 86%), rgb(8 15 25 / 68%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 28%), 0 16px 48px rgb(0 0 0 / 38%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
}
.story-chapter h1, .story-chapter h2 {
  font-size: clamp(1.6rem, 3.7vw, 3.3rem);
  line-height: 1.13;
  color: #fff;
  margin: 0 0 .7rem;
}
.story-chapter p { max-width: 42ch; color: #fff; font-size: clamp(1rem, 1.8vw, 1.18rem); line-height: 1.55; }
.story-chapter .hero__cta { margin-top: 1.25rem; }
.hero--scroll .hero__content {
  height: calc(var(--story-stage) + var(--story-travel));
  margin-top: calc(-1 * var(--story-stage));
  z-index: 1;
  pointer-events: none;
}
.hero--scroll .story-chapter {
  position: absolute;
  inset-inline-start: 0;
  top: calc(var(--story-stage) / 2 + var(--scene) * var(--story-travel));
  transform: translateY(-50%);
  pointer-events: auto;
}
.hero--scroll :is(.story-opening, .story-ending) {
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
}
.hero--story:not(.hero--scroll) .hero__sticky { display: none; }
.hero--story:not(.hero--scroll) .hero__content { display: grid; gap: 1rem; padding-block: 6.5rem 1rem; }
.hero--story:not(.hero--scroll) .story-chapter {
  width: 100%;
  background: linear-gradient(90deg, #06101ded, #06101d82), var(--chapter-image) 65% center / cover;
}

.home-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.4rem, 4vw, 3rem); padding-block: clamp(3rem, 8vw, 6rem); }
.home-link { border-top: 2px solid var(--blue); padding-top: 1rem; }
.home-link h2, .home-contact h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); }
.home-link p, .home-contact p { margin: .35rem 0 .8rem; }
.home-link a { color: var(--blue); font-weight: 700; }
.home-contact { background: #09131c; color: #fff; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.home-contact > .container { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }

@media (max-width: 820px) {
  .hero--story { --story-travel: 410svh; }
  .hero--story .hero__overlay { background: linear-gradient(0deg, #050a1244, transparent 60%); }
  .hero--scroll .story-chapter:not(.story-opening, .story-ending) {
    top: calc(var(--story-stage) * .68 + var(--scene) * var(--story-travel));
  }
  .hero--story .story-chapter h1, .hero--story .story-chapter h2 { font-size: clamp(1.55rem, 6vw, 2.65rem); }
  .home-links { grid-template-columns: 1fr; }
}

/* Homepage navigation and typography. */
.home-page {
  font-family: var(--home-type, var(--site-body-font));
}
.story-opening h1,
.story-opening .btn { font-family: var(--home-type, var(--site-body-font)); }
html:lang(en) .home-page { --home-type: "DM Sans", "Kanit", sans-serif; }
.hero--story .story-opening {
  width: min(1150px, 100%);
  text-align: center;
}
.hero--story .story-opening h1 {
  font-size: clamp(2.65rem, 7.3vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.story-opening p { max-width: 56ch; margin-inline: auto; color: #fff; font-size: clamp(1.08rem, 2.3vw, 1.55rem); }
.story-opening .hero__cta { justify-content: center; }
.story-opening .btn { border-radius: 999px; }
.story-opening .btn--ghost { border-color: #ffffff54; }

/* Darken the whole stage at both ends without affecting foreground cards. */
.hero--scroll .hero__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 70%), rgb(0 0 0 / 42%) 48%, rgb(0 0 0 / 80%));
  opacity: var(--hero-end-shade, 1);
}
.hero--scroll .story-speaker { top: calc(var(--story-stage) * .78 + var(--scene) * var(--story-travel)); }
.hero--story .story-ending { width: min(790px, 100%); text-align: center; justify-self: center; }
.story-ending p { margin-inline: auto; }
.story-ending .hero__cta { justify-content: center; }
@media (max-width: 820px) {
  .hero--scroll .story-chapter.story-speaker { top: calc(var(--story-stage) * .87 + var(--scene) * var(--story-travel)); }
}

.hero--scroll .story-beam { top: calc(var(--story-stage) * .38 + var(--scene) * var(--story-travel)); }
@media (max-width: 820px) {
  .hero--scroll .story-chapter.story-beam { top: calc(var(--story-stage) * .55 + var(--scene) * var(--story-travel)); }
}

.hero--scroll .story-opening {
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.hero--story:not(.hero--scroll) .story-opening {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Borderless glass surfaces across the homepage. */
.home-page {
  --home-glass: linear-gradient(145deg, rgb(91 129 179 / 30%), rgb(22 33 53 / 54%));
  --home-glass-shadow: 0 14px 42px rgb(0 0 0 / 25%);
  background: radial-gradient(ellipse at 10% 82%, #1b3150 0%, transparent 45%),
              radial-gradient(ellipse at 90% 94%, #172c4a 0%, transparent 46%), #090f19;
  color: #fff;
}
.home-page :is(.story-chapter, .hero .btn) { border-color: transparent; }
.home-page .story-chapter { box-shadow: var(--home-glass-shadow); }
.home-page .story-opening { box-shadow: none; }
.home-page .btn--ghost {
  background: rgb(255 255 255 / 14%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.home-page .btn--ghost:hover { background: rgb(255 255 255 / 25%); color: #fff; }
.home-page :is(.home-link, .home-contact > .container, .footer__inner) {
  border: 0;
  border-radius: clamp(20px, 3vw, 32px);
  background: var(--home-glass);
  box-shadow: var(--home-glass-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
.home-page .home-link a { color: #c7deff; }
.home-page .home-link a:hover { color: #fff; }
.home-page .home-contact,
.home-page .footer { background: transparent; }
.home-page .footer__inner { padding-block: 1rem; }

/* Storefront legibility, keyboard access and shared interactive rhythm. */
.skip-link {
  position: fixed;
  z-index: 300;
  top: .65rem;
  left: .65rem;
  padding: .75rem 1rem;
  border-radius: 8px;
  background: #fff;
  color: #121922;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.header .language-switch, .header .burger, .header-cart {
  min-height: 44px;
}
.header .burger { min-width: 44px; padding-inline: 6px; }
.header-cart { display: inline-flex; align-items: center; }
.header .nav a { display: flex; align-items: center; min-height: 44px; }
.header .nav a:not(.btn) { justify-content: center; white-space: nowrap; }
.header .nav .btn, .header .language-switch { border-radius: 10px; }
.header :is(a, button):focus-visible { outline: 2px solid #1462ff; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .header .burger span { transition: none; }
}

.home-projects {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  background: #0c1522;
}
.home-projects__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem 2rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.home-projects h2 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.1; }
.home-projects__heading a { display: inline-flex; align-items: center; min-height: 44px; color: #c7deff; }
.home-projects__heading a:hover { text-decoration: underline; text-underline-offset: .25em; }
.home-projects__grid, .home-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.home-projects h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 600; margin-bottom: .6rem; }
.home-projects img { width: 100%; height: auto; aspect-ratio: 31 / 18; object-fit: cover; border-radius: clamp(14px, 2vw, 28px); }
.home-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-link a { display: inline-flex; align-items: center; min-height: 44px; }
.home-link a:hover { text-decoration: underline; text-underline-offset: .25em; }
.home-page .home-contact .hero__cta .btn { min-height: 44px; }
.page-products .toolbar input, .page-products .toolbar select, .page-products .toolbar button { min-height: 44px; }
.page-products .pcard:focus-visible { outline-offset: 2px; }
.page-products .pcard:hover { transform: translateY(-2px); }
.page-products .pcard:hover img { transform: scale(1.025); }

@media (prefers-reduced-motion: no-preference) {
  .hero--scroll[data-enter] .story-opening :is(h1, p, .hero__cta) {
    animation: opening-rise 620ms cubic-bezier(.2,.8,.2,1) both;
  }
  .hero--scroll[data-enter] .story-opening p { animation-delay: 75ms; }
  .hero--scroll[data-enter] .story-opening .hero__cta { animation-delay: 140ms; }
  @keyframes opening-rise { from { transform: translateY(12px); } to { transform: translateY(0); } }
}
@media (max-width: 960px) {
  .header .brand span { font-size: 1.02rem; }
}
@media (max-width: 820px) {
  .home-projects__grid, .home-links { grid-template-columns: 1fr; }
  .home-projects__grid { gap: 1.75rem; }
}
@media (max-width: 400px) {
  .header .brand img { width: 44px; height: 44px; }
  .header .brand span { font-size: .9rem; }
}
@media (max-width: 390px) {
  .header .brand { gap: .35rem; }
  .header-cart { margin-left: .35rem; }
}

.hero--story .story-opening h1 span { display: block; }
.hero--story .story-opening p { text-wrap: pretty; }
.home-projects { min-height: 100svh; display: grid; align-items: center; }
@media (max-width: 820px) {
  .home-projects { align-items: start; }
}

.home-page .footer .brand b { color: #c7deff; }
.home-page .footer__inner p { color: #e1ecff; }
.home-projects h2, .home-link h2, .home-contact h2 {
  font-size: clamp(1.55rem, 3.7vw, 3.3rem);
  line-height: 1.13;
}
.home-page .home-contact .btn--messenger { border-radius: 999px; }
.home-page :is(.story-chapter, .home-link, .home-contact) a:focus-visible {
  outline: 3px solid #c7e1ff;
  outline-offset: 5px;
  scroll-margin-block: 7rem;
}

.home-projects :is(h2, h3) {
  font-family: var(--home-type, var(--site-body-font));
  font-weight: 700;
  text-wrap: balance;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .header .nav a > span {
    display: inline-block;
    transition: translate .18s ease-out, scale .18s ease-out, text-shadow .18s ease-out;
  }
  .header .nav a:hover > span {
    translate: 0 -3px;
    scale: 1.045;
    text-shadow: 0 2px 5px rgb(8 22 50 / 25%);
  }
  .header .nav .btn:hover:not(:active) { transform: none; }
}

/* Shared site directory */
.site-footer {
  position: relative;
  background: #f3f5f9;
  color: #303b50;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) 1.5rem;
  font-size: .875rem;
  line-height: 1.55;
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #d6dce7;
}
.site-footer__brand {
  display: inline-flex;
  gap: .65rem;
  align-items: center;
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 700;
}
.site-footer__brand img { width: 32px; height: 32px; object-fit: contain; }
.site-footer__top p, .site-footer__copyright { margin: 0; }
.site-footer__directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.2fr);
  gap: 2rem clamp(1rem, 2.5vw, 2rem);
  padding-block: 2rem;
}
.site-footer__column { display: grid; align-content: start; gap: 1.5rem; }
.site-footer h2 { margin: 0 0 .5rem; color: #142035; font-size: .9rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: .35rem; }
.site-footer a { overflow-wrap: anywhere; text-underline-offset: .2em; }
.site-footer a:is(:hover, :focus-visible) { color: var(--blue); text-decoration: underline; }
.site-footer address { font-style: normal; }
.site-footer__map { display: inline-block; margin-top: .5rem; color: var(--blue); }
.site-footer__copyright { padding-top: 1rem; border-top: 1px solid #d6dce7; }

@media (max-width: 950px) {
  .site-footer__directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .site-footer__directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__column:last-child { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .site-footer li + li { margin-top: .55rem; }
}

body .header[data-ink="light"] {
  --menu-ink: #fff;
  --menu-active: #fff;
  --menu-shadow: 0 1px 2px #000, 0 0 6px rgb(0 0 0 / 72%);
}
body .header[data-ink="dark"] {
  --menu-ink: #101010;
  --menu-active: #101010;
  --menu-shadow: 0 1px 2px rgb(255 255 255 / 90%), 0 0 6px rgb(255 255 255 / 75%);
}
@media (max-width: 820px) {
  .header .nav {
    --menu-ink: #fff;
    --menu-active: #fff;
    --menu-shadow: none;
  }
  .rental-page .header .nav {
    --menu-ink: #13284d;
    --menu-active: #0033b6;
  }
}

.contact-icons {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  color: #fff;
  transition: filter .15s ease;
}
.contact-icon--line { background: #06c755; }
.contact-icon--messenger { background: #0764dd; }
.contact-icon svg { width: 25px; height: 25px; }
.contact-icon:hover { filter: brightness(.9); }
.contact-icon:focus-visible { outline: 2px solid #375b97; outline-offset: 3px; }
.contact-icons--floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
}

.compare-callout { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.25rem; }
.pcard__link { display: flex; flex: 1; flex-direction: column; color: inherit; }
.pcard__compare { display: flex; flex-wrap: wrap; gap: .35rem .65rem; padding: .65rem .95rem; border-top: 1px solid #e3e9f3; font-size: .8rem; }
.pcard__compare a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }

.compare-page { --cmp-paper: #eef1f5; --cmp-sheet: #fff; --cmp-ink: #121a2c; --cmp-muted: #56627a; --cmp-line: #d5dbe5; --cmp-tint: #f2f6ff; background: var(--cmp-paper); color: var(--cmp-ink); }
.compare-page [hidden], .compare-page[hidden] { display: none; }
.cmp { padding-block: 7.25rem 4.5rem; }
.cmp-head { display: grid; gap: .35rem; max-width: 46rem; margin-bottom: 1.6rem; }
.cmp-back { justify-self: start; color: var(--blue); font-size: .92rem; text-decoration: underline; text-underline-offset: .2em; }
.cmp-head h1 { margin: .35rem 0 0; font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 600; line-height: 1.15; }
.cmp-head p { margin: 0; color: var(--cmp-muted); }
.cmp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; margin-bottom: .85rem; font-size: .9rem; }
.cmp-tools.is-idle .cmp-toggle, .cmp-tools.is-idle .cmp-legend { opacity: .5; }
.cmp-toggle { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; font-weight: 500; }
.cmp-toggle input { width: 1.15rem; height: 1.15rem; accent-color: var(--blue); }
.cmp-toggle:has(input:disabled) { cursor: default; }
.cmp-legend { display: inline-flex; align-items: center; gap: .5rem; margin: 0; color: var(--cmp-muted); }
.cmp-legend span { width: 4px; height: 1.1rem; border-radius: 2px; background: var(--blue); }
.cmp-hint { margin: 0 0 0 auto; color: var(--cmp-muted); }
.cmp-scroll { overflow-x: auto; overscroll-behavior-inline: contain; background: var(--cmp-sheet); border: 1px solid var(--cmp-line); border-radius: 10px; }
.cmp-table { width: 100%; min-width: 760px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: .93rem; }
.cmp-col-label { width: 23%; }
.cmp-table :is(th, td) { padding: .7rem 1rem; text-align: start; vertical-align: top; overflow-wrap: anywhere; }
.cmp-table tbody tr:not(.cmp-group) > * { border-top: 1px solid var(--cmp-line); }
.cmp-table tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--cmp-sheet); color: var(--cmp-muted); font-weight: 400; }
.cmp-table tbody td { border-left: 1px solid var(--cmp-line); white-space: pre-line; }
.cmp-table thead :is(th, td) { padding: 1.1rem 1rem 1.2rem; border-left: 1px solid var(--cmp-line); }
.cmp-table thead .cmp-corner { position: sticky; left: 0; z-index: 1; background: var(--cmp-sheet); border-left: 0; }

.cmp-slot { font-weight: 400; }
.cmp-slot__product { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; }
.cmp-slot__photo { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: .35rem; background: #f5f7fa; border-radius: 6px; }
.cmp-slot__photo img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.cmp-slot__name { color: var(--cmp-ink); font-family: "Kanit", sans-serif; font-size: 1.02rem; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cmp-slot__name:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .18em; }
.cmp-slot__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; margin: 0; font-family: "Kanit", sans-serif; font-size: 1.55rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--blue); }
.cmp-slot__best { padding: .12rem .5rem; border-radius: 4px; background: #dfe8ff; color: var(--cmp-ink); font-size: .78rem; font-weight: 500; }
.cmp-slot__remove { justify-self: start; padding: 0; border: 0; background: none; color: var(--cmp-muted); font: inherit; font-size: .84rem; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.cmp-slot__remove:hover { color: #b3261e; }
.cmp-slot.is-empty .cmp-slot__product { place-content: center; justify-items: center; gap: .2rem; aspect-ratio: 4 / 3; margin-bottom: .2rem; border: 1.5px dashed #b9c3d3; border-radius: 6px; text-align: center; }
.cmp-slot__empty { font-family: "Kanit", sans-serif; font-weight: 500; }
.cmp-slot__empty-help { padding-inline: 1rem; color: var(--cmp-muted); font-size: .84rem; }
.cmp-slot__picker { display: grid; gap: .4rem; margin-top: .85rem; }
.cmp-slot.is-empty .cmp-slot__picker { margin-top: .6rem; }
.cmp-slot__picker :is(input, select) { width: 100%; min-width: 0; min-height: 40px; padding: .4rem .6rem; color: inherit; background: #fff; border: 1px solid #b9c3d3; border-radius: 6px; font: inherit; font-size: .88rem; }
.cmp-slot:not(.is-empty) .cmp-slot__picker input { background: var(--cmp-paper); border-color: transparent; }

.cmp-group th { padding: 1.6rem 1rem .55rem; background: var(--cmp-sheet); border-top: 2px solid var(--cmp-ink); font-family: "Kanit", sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--cmp-ink); }
.cmp-group th { position: sticky; left: 0; }
.cmp-table tbody tr.is-different th[scope="row"] { box-shadow: inset 4px 0 0 var(--blue); color: var(--cmp-ink); }
.cmp-table tbody tr.is-different td { background: var(--cmp-tint); }
.cmp-table td.is-missing { color: #98a2b3; }
.cmp-row--code td { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.cmp-row--prose td { color: var(--cmp-muted); font-size: .88rem; line-height: 1.6; }
.cmp-empty td { padding: 2.5rem 1rem; text-align: center; color: var(--cmp-muted); }
.cmp-note { margin: 1rem 0 0; color: var(--cmp-muted); font-size: .84rem; }
.compare-page :is(a, input, select, button, .cmp-scroll):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 620px) {
  .cmp { padding-top: 6.25rem; }
  .cmp-table { min-width: 640px; font-size: .88rem; }
  .cmp-col-label { width: 112px; }
  .cmp-table :is(th, td) { padding: .6rem .7rem; }
  .cmp-slot__price { font-size: 1.25rem; }
  .cmp-hint { margin-left: 0; }
}

/* Shared storefront material, type and input feedback. */
:root {
  --surface-raised: #fff;
  --surface-line: #dce4f0;
  --surface-shadow: 0 14px 36px rgb(15 31 60 / 9%);
}
html { font-optical-sizing: auto; }
:where(main, .site-footer) :is(h1,h2,h3) { text-wrap: balance; }
html:lang(en) :where(main) h1 { letter-spacing: -.035em; }
:where(main) :is(p, address) { line-height: 1.6; }
.header, .header.is-scrolled {
  background: rgb(255 255 255 / 4%);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.site-footer__directory a { display: inline-block; padding-block: .15rem; }
:where(body) :is(.btn, .contact-icon, .language-switch, .burger, .photo-controls button, .cmp-slot__picker select) {
  touch-action: manipulation;
}
:where(body) :is(.btn, .contact-icon, .language-switch, .burger, .photo-controls button, .cmp-slot__picker select):focus-visible {
  outline: 2px solid #2863d8;
  outline-offset: 3px;
}
:where(body) :is(.btn, .contact-icon, .language-switch, .photo-controls button):active:not(:disabled) {
  filter: brightness(.88);
  transition-duration: 0s;
}
:where(main) :is(.pcard, .contact-panel, .stage-builder__view, .stage-builder__form, .cart-box) {
  border-radius: 18px;
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .header, .header.is-scrolled {
    background: #fff;
    border-bottom-color: #aebbd0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  body .header[data-ink] { --menu-ink: #14213a; --menu-active: #14213a; --menu-shadow: none; }
}
