/* Copied unchanged from the Astro reference: DTSunThailand/apps/web/src/styles/global.css (commit 2454264).
   Do not edit here; WordPress-specific adjustments live in wp-bridge.css. */

/* D.T.SUN — "fire-rated" visual system
   Signature: the reflective tape band from D.T.SUN turnout gear. Everything else stays quiet. */

:root {
  --ember: #981f15;
  --ember-hot: #c22a1c;
  --oxblood: #5e1009;
  --soot: #1e1b1a;
  --soot-2: #2b2725;
  --steel: #67615c;
  --concrete: #eceae7;
  --paper: #ffffff;
  --signal: #d6e01f;
  --silver: #c9cdd1;
  --line: rgba(30, 27, 26, 0.14);
  --line-dark: rgba(255, 255, 255, 0.16);
  --fc-a: #2e8b3c;
  --fc-b: #c8261b;
  --fc-c: #1f4fa8;
  --fc-k: #1e1b1a;

  --font-display: 'Bai Jamjuree', 'IBM Plex Sans Thai', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step--1: 0.85rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: clamp(1.75rem, 1.2rem + 1.8vw, 2.4rem);
  --step-4: clamp(2.1rem, 1.3rem + 3vw, 3.4rem);
  --step-5: clamp(2.5rem, 1.2rem + 5vw, 5.4rem);

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --radius: 4px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--soot);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: wrap;
}
p {
  margin: 0;
  text-wrap: pretty;
}
:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-light :focus-visible,
.section--light :focus-visible {
  outline-color: var(--ember);
}
.nw {
  white-space: nowrap;
}
svg.i {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--signal);
  color: var(--soot);
  padding: 10px 16px;
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section);
}
.section--concrete {
  background: var(--concrete);
}
.section--dark {
  background: var(--soot);
  color: #f3f1ef;
}
.section--ember {
  background: var(--ember);
  color: #fff;
}

/* ---------- Reflective tape (signature) ---------- */
.tape {
  position: relative;
  height: 14px;
  background: linear-gradient(
    180deg,
    var(--signal) 0 32%,
    var(--silver) 32% 68%,
    var(--signal) 68% 100%
  );
  overflow: hidden;
}
.tape::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  transform: translateX(-120%);
}
.tape--sweep::after {
  animation: tape-sweep 1.8s 0.7s var(--ease) both;
}
@keyframes tape-sweep {
  to {
    transform: translateX(420%);
  }
}
.tape--thin {
  height: 8px;
}

/* ---------- Type helpers ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--ember);
  margin-bottom: 14px;
}
.kicker::before {
  content: '';
  width: 22px;
  height: 6px;
  background: linear-gradient(180deg, var(--signal) 0 33%, var(--silver) 33% 67%, var(--signal) 67%);
}
.section--dark .kicker,
.section--ember .kicker {
  color: #fff;
}
.h-section {
  font-size: var(--step-4);
  max-width: 20ch;
}
.lead {
  font-size: var(--step-1);
  line-height: 1.65;
  color: var(--steel);
  max-width: 60ch;
}
.section--dark .lead {
  color: #c9c3be;
}
.section--ember .lead {
  color: #f6dcd8;
}
.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head--split {
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
  }
}
.prose {
  max-width: 68ch;
}
.prose > * + * {
  margin-top: 1em;
}
.prose h2 {
  font-size: var(--step-2);
  margin-top: 1.6em;
}
.prose h3 {
  font-size: var(--step-1);
  margin-top: 1.4em;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 0.35em;
}
.prose li::marker {
  color: var(--ember);
  font-weight: 700;
}
.prose a {
  color: var(--ember);
  text-underline-offset: 3px;
}
.prose figure {
  margin: 1.6em 0;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ember);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid var(--bg);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s var(--ease);
}
.btn:hover {
  --bg: var(--oxblood);
}
.btn:active {
  transform: translateY(1px);
}
.btn--ghost {
  --bg: transparent;
  --fg: currentColor;
  border-color: currentColor;
}
.btn--ghost:hover {
  --bg: rgba(255, 255, 255, 0.1);
}
.on-light .btn--ghost:hover,
.section--light .btn--ghost:hover {
  --bg: rgba(30, 27, 26, 0.06);
}
.btn--white {
  --bg: #fff;
  --fg: var(--ember);
}
.btn--white:hover {
  --bg: var(--concrete);
}
.btn--sm {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.92rem;
}
.btn[aria-pressed='true'],
.btn.is-added {
  --bg: var(--soot);
  border-color: var(--soot);
}
.textlink {
  font-weight: 600;
  color: var(--ember);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.section--dark .textlink,
.section--ember .textlink {
  color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--soot);
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
}
.brand__name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  color: #bdb6b0;
}
.nav {
  margin-left: auto;
}
.nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  position: relative;
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: #e8e4e1;
  white-space: nowrap;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 3px;
  background: var(--ember-hot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current='page']::after {
  transform: scaleX(1);
}
.nav a[aria-current='page'] {
  color: #fff;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-switch {
  padding: 8px 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: #e8e4e1;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.quote-pill {
  position: relative;
}
.quote-pill__count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: #fff;
  color: var(--ember);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}
.quote-pill__count[data-empty='true'] {
  display: none;
}
.menu-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  min-height: 44px;
  padding: 8px 12px;
  font: 600 0.95rem var(--font-body);
  cursor: pointer;
}
@media (max-width: 1180px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--soot);
    padding: 24px var(--gutter) 40px;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.2s,
      transform 0.25s var(--ease),
      visibility 0s 0.25s;
  }
  .nav[data-open='true'] {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition:
      opacity 0.2s,
      transform 0.25s var(--ease);
  }
  .nav ul {
    flex-direction: column;
    gap: 0;
  }
  .nav a {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav a::after {
    left: 0;
    right: auto;
    width: 40px;
    bottom: -1px;
  }
  .header-actions {
    margin-left: auto;
  }
  .quote-pill__label {
    display: none;
  }
}
@media (max-width: 520px) {
  .brand__name small {
    display: none;
  }
  .brand img {
    width: 42px;
    height: 42px;
  }
  .header-actions .btn {
    padding-inline: 12px;
  }
}

/* ---------- Preview banner ---------- */
.preview-bar {
  background: var(--signal);
  color: var(--soot);
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88svh, 860px);
  display: grid;
  background: var(--soot);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__slide {
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  align-items: end;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1s ease,
    visibility 0s 1s;
}
.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 9s linear;
}
.hero__slide.is-active .hero__media img {
  transform: scale(1);
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 17, 16, 0.9) 0%, rgba(20, 17, 16, 0.55) 45%, rgba(20, 17, 16, 0.1) 80%),
    linear-gradient(0deg, rgba(20, 17, 16, 0.75) 0%, transparent 45%);
}
.hero__content {
  padding-block: clamp(96px, 14vw, 160px) clamp(88px, 10vw, 120px);
}
.hero__title {
  font-size: var(--step-5);
  line-height: 1.12;
  white-space: pre-line;
  max-width: 14ch;
}
.hero__text {
  margin-top: 22px;
  max-width: 46ch;
  font-size: var(--step-1);
  color: #e4dfdb;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__phone {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.hero__phone span {
  color: #bdb6b0;
  font-weight: 400;
}
.hero__controls {
  position: absolute;
  right: var(--gutter);
  bottom: 44px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__dot {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.hero__dot span {
  width: 28px;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  transition: background-color 0.3s;
}
.hero__dot[aria-current='true'] span {
  background: var(--signal);
}
.hero__pause {
  margin-left: 6px;
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  font: 600 0.85rem var(--font-body);
  padding: 0 10px;
}
.hero .tape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}
.hero-enter > * {
  animation: rise 0.9s var(--ease) both;
}
.hero-enter > *:nth-child(2) {
  animation-delay: 0.12s;
}
.hero-enter > *:nth-child(3) {
  animation-delay: 0.24s;
}
.hero-enter > *:nth-child(4) {
  animation-delay: 0.36s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
@media (max-width: 640px) {
  .hero {
    min-height: 92svh;
  }
  .hero__media::after {
    background: linear-gradient(0deg, rgba(20, 17, 16, 0.94) 0%, rgba(20, 17, 16, 0.6) 55%, rgba(20, 17, 16, 0.25) 100%);
  }
  .hero__controls {
    left: var(--gutter);
    right: auto;
    bottom: 24px;
  }
  .hero__content {
    padding-bottom: 96px;
  }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background: var(--soot);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero__inner {
  padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px);
}
.page-hero h1 {
  font-size: var(--step-5);
  line-height: 1.12;
  max-width: 16ch;
}
.page-hero .lead {
  margin-top: 18px;
  color: #d6d0cb;
}
.page-hero--image .page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.page-hero--image .page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero--image .page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 17, 16, 0.92), rgba(20, 17, 16, 0.55) 60%, rgba(20, 17, 16, 0.25));
}
.crumbs {
  font-size: var(--step--1);
  color: #bdb6b0;
  margin-bottom: 18px;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.crumbs li + li::before {
  content: '/';
  margin-right: 6px;
  opacity: 0.5;
}
.crumbs a {
  color: inherit;
  text-underline-offset: 3px;
}
.crumbs--light {
  color: var(--steel);
}

/* ---------- Fire class chips (pictograms from extinguisher labels) ---------- */
.fc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fc li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--steel);
}
.fc svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.fc--compact li span {
  display: none;
}

/* ---------- Category shelf ---------- */
.shelf {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2vw, 24px);
}
@media (min-width: 900px) {
  .shelf {
    grid-template-columns: repeat(4, 1fr);
  }
}
.shelf__item {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  text-decoration: none;
  background: var(--paper);
  border-bottom: 4px solid transparent;
  transition: border-color 0.25s;
}
.shelf__item:hover {
  border-bottom-color: var(--ember);
}
.shelf__img {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: end center;
  padding: 24px 16px 0;
  background: radial-gradient(ellipse at 50% 92%, rgba(30, 27, 26, 0.12) 0 18%, transparent 46%), var(--paper);
  overflow: hidden;
}
.shelf__img img {
  height: 92%;
  width: auto;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}
.shelf__item:hover .shelf__img img {
  transform: translateY(-6px) scale(1.03);
}
.shelf__body {
  padding: 16px 16px 20px;
}
.shelf__body h3 {
  font-size: var(--step-1);
}
.shelf__body p {
  font-size: var(--step--1);
  color: var(--steel);
  margin-top: 4px;
}

/* ---------- Product rail (horizontal) ---------- */
.rail {
  position: relative;
}
.rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 300px);
  gap: clamp(12px, 2vw, 24px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding: 4px var(--gutter) 24px;
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin;
  scrollbar-color: var(--ember) transparent;
}
@media (min-width: 1280px) {
  .rail__track {
    margin-inline: 0;
    padding-inline: 0;
  }
}
.rail__track > * {
  scroll-snap-align: start;
}
.rail__nav {
  display: flex;
  gap: 8px;
}
.rail__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--soot);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.rail__btn:hover {
  background: var(--soot);
  color: #fff;
}
.rail__btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.rail__btn svg {
  width: 20px;
  height: 20px;
}

/* ---------- Product card ---------- */
.pcard {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
}
.pcard__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  padding: 20px;
  background: radial-gradient(ellipse at 50% 94%, rgba(30, 27, 26, 0.12) 0 16%, transparent 44%), #fff;
  overflow: hidden;
}
.pcard__media img {
  position: absolute;
  inset: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  object-fit: contain;
  transition:
    opacity 0.5s ease,
    transform 0.6s var(--ease);
}
.pcard__media img + img {
  opacity: 0;
}
.pcard:hover .pcard__media img:first-child:not(:only-child) {
  opacity: 0;
}
.pcard:hover .pcard__media img + img {
  opacity: 1;
}
.pcard:hover .pcard__media img:only-child {
  transform: scale(1.04);
}
.pcard__body {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
}
.pcard__cat {
  font-size: var(--step--1);
  color: var(--steel);
}
.pcard__title {
  font-size: 1.12rem;
  line-height: 1.35;
}
.pcard__title a {
  text-decoration: none;
}
.pcard__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.pcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}
.pcard__foot .btn {
  position: relative;
  z-index: 1;
}

/* ---------- Catalog grid + filter ---------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.filter a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  background: #fff;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.filter a:hover {
  border-color: var(--soot);
}
.filter a[aria-current='true'] {
  background: var(--soot);
  border-color: var(--soot);
  color: #fff;
}
@media (max-width: 640px) {
  .filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 8px;
    scrollbar-width: none;
  }
  .filter a {
    white-space: nowrap;
    flex: none;
  }
}
.filter a small {
  margin-left: 8px;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: clamp(12px, 2vw, 24px);
}
.grid-products > [hidden] {
  display: none;
}
.grid-products .pcard {
  animation: fade-in 0.35s ease both;
}
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- Product detail ---------- */
.pd {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
}
@media (min-width: 960px) {
  .pd {
    grid-template-columns: 1.05fr 1fr;
    align-items: start;
  }
  .pd__gallery {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}
.gallery__main {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: radial-gradient(ellipse at 50% 92%, rgba(30, 27, 26, 0.12) 0 16%, transparent 44%), #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
.gallery__main img {
  position: absolute;
  inset: 5%;
  width: 90%;
  height: 90%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity 0.45s ease,
    transform 0.6s var(--ease);
}
.gallery__main img.is-active {
  opacity: 1;
  transform: none;
}
.gallery__main img.is-photo {
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.gallery__thumbs button {
  width: 76px;
  height: 76px;
  padding: 6px;
  background: #fff;
  border: 2px solid var(--line);
  cursor: pointer;
}
.gallery__thumbs button[aria-pressed='true'] {
  border-color: var(--ember);
}
.gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pd__title {
  font-size: var(--step-4);
}
.pd__sku {
  color: var(--steel);
  font-size: var(--step--1);
  margin-top: 8px;
}
.pd__summary {
  margin-top: 18px;
  font-size: var(--step-1);
  line-height: 1.65;
}
.pd__block {
  margin-top: 28px;
}
.pd__block h2 {
  font-size: var(--step-1);
  margin-bottom: 12px;
}
.specs {
  width: 100%;
  border-collapse: collapse;
}
.specs th,
.specs td {
  text-align: left;
  vertical-align: top;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.specs th {
  width: 40%;
  font-weight: 500;
  color: var(--steel);
  padding-right: 16px;
}
.specs td {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pd__note {
  margin-top: 10px;
  font-size: var(--step--1);
  color: var(--steel);
}
.pd__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding: 20px;
  background: var(--concrete);
  align-items: center;
}
.pd__price {
  flex: 1 1 100%;
  font-weight: 600;
}

/* ---------- Story (sticky) ---------- */
.story {
  display: grid;
  gap: 40px;
}
@media (min-width: 960px) {
  .story {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
  .story__visual {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    height: calc(100svh - var(--header-h) - 64px);
    max-height: 680px;
  }
}
.story__visual {
  display: none;
  position: relative;
  overflow: hidden;
  background: var(--soot);
}
@media (min-width: 960px) {
  .story__visual {
    display: block;
  }
}
.story__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.7s ease,
    transform 1.2s var(--ease);
}
.story__visual img.is-product {
  object-fit: contain;
  padding: 10%;
  background: #fff;
}
.story__visual img.is-active {
  opacity: 1;
  transform: none;
}
.story__step {
  position: relative;
  padding: 0 0 0 64px;
  min-height: 40svh;
  display: grid;
  align-content: center;
}
.story__step:last-child {
  min-height: 34svh;
}
.story__num {
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--steel);
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.story__step.is-active .story__num {
  background: var(--ember);
  border-color: var(--ember);
  color: #fff;
}
.story__step h3 {
  font-size: var(--step-3);
}
.story__step p {
  margin-top: 10px;
  color: var(--steel);
  max-width: 42ch;
}
.story__step .story__inline {
  margin-top: 18px;
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}
@media (min-width: 960px) {
  .story__step .story__inline {
    display: none;
  }
}
@media (max-width: 959px) {
  .story__step {
    min-height: 0;
    padding: 28px 0 28px 60px;
  }
  .story__num {
    top: 28px;
    translate: none;
  }
}

/* ---------- Training (dark) ---------- */
.training {
  display: grid;
  gap: 40px;
}
@media (min-width: 960px) {
  .training {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: start;
  }
}
.training__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.training__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.training__photo figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 16px;
  font-size: var(--step--1);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent);
}
.courses {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
}
.courses li {
  border-bottom: 1px solid var(--line-dark);
}
.courses a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 20px;
  padding: 22px 0;
  text-decoration: none;
  align-items: center;
}
.courses h3 {
  font-size: var(--step-2);
  font-weight: 600;
  transition: color 0.2s;
}
.courses p {
  grid-column: 1;
  color: #bdb6b0;
  font-size: 0.98rem;
}
.courses .arrow {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
.courses a:hover h3 {
  color: var(--signal);
}
.courses a:hover .arrow {
  background: var(--ember);
  border-color: var(--ember);
}
.courses .arrow svg {
  width: 18px;
  height: 18px;
}

/* ---------- Why choose ---------- */
.why {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 860px) {
  .why {
    grid-template-columns: repeat(3, 1fr);
  }
}
.why__item {
  background: var(--concrete);
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  gap: 14px;
  align-content: start;
}
.why__icon {
  width: 56px;
  height: 56px;
  color: var(--ember);
}
.why__item h3 {
  font-size: var(--step-2);
}
.why__item p {
  color: var(--steel);
}

/* ---------- Split (company intro) ---------- */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1.1fr;
    gap: 72px;
  }
  .split--reverse > :first-child {
    order: 2;
  }
}
.split__img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--soot);
}
.split__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Banner ---------- */
.banner {
  display: block;
}
.banner img {
  width: 100%;
  height: auto;
}

/* ---------- Logo marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  /* duration scales with the number of logos (set inline) so the speed stays constant */
  animation: marquee var(--marquee-duration, 38s) linear infinite;
  padding-block: 8px;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
/* Client logos sit on white cards: the source logos were cropped from a photo background. */
.logo-item {
  position: relative;
  display: grid;
  place-items: center;
  height: 88px;
  min-width: 120px;
  padding: 10px 18px;
  flex: none;
  background: #fff;
  border: 1px solid var(--line);
}
.logo-item img {
  height: auto;
  max-height: 64px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
  transition:
    filter 0.3s,
    opacity 0.3s;
}
.logo-item:hover img {
  filter: none;
  opacity: 1;
}
.logo-item__badge {
  position: absolute;
  top: -6px;
  right: -8px;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--signal);
  color: var(--soot);
}
.demo-note {
  margin-top: 18px;
  font-size: var(--step--1);
  color: var(--steel);
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px 32px;
}
.client-wall {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(12px, 2vw, 24px);
}
.client-wall figcaption {
  margin-top: 12px;
  font-size: var(--step--1);
  color: var(--steel);
}

/* ---------- Articles ---------- */
.articles {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
}
@media (min-width: 760px) {
  .articles {
    grid-template-columns: repeat(3, 1fr);
  }
}
.acard {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
}
.acard__img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--concrete);
}
.acard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.acard__img img.is-cutout {
  object-fit: contain;
  padding: 8%;
  background: #fff;
}
.acard:hover .acard__img img {
  transform: scale(1.04);
}
.acard time {
  font-size: var(--step--1);
  color: var(--steel);
}
.acard h3 {
  font-size: var(--step-1);
  line-height: 1.4;
}
.acard h3 a {
  text-decoration: none;
}
.acard h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.acard p {
  color: var(--steel);
  font-size: 0.98rem;
}

/* ---------- Quote CTA ---------- */
.cta-band {
  position: relative;
}
.cta-band__inner {
  display: grid;
  gap: 28px;
  align-items: end;
}
@media (min-width: 900px) {
  .cta-band__inner {
    grid-template-columns: 1.4fr 1fr;
  }
}
.cta-band h2 {
  font-size: var(--step-5);
  line-height: 1.1;
}
.cta-band__actions {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.cta-band__actions a:not(.btn) {
  color: #fff;
  font-weight: 600;
}

/* ---------- Training detail ---------- */
.modules {
  display: grid;
  gap: 32px;
}
@media (min-width: 860px) {
  .modules {
    grid-template-columns: repeat(2, 1fr);
  }
  .modules > :only-child {
    grid-column: 1 / -1;
  }
}
.module h3 {
  font-size: var(--step-2);
  padding-bottom: 10px;
  border-bottom: 3px solid var(--ember);
  margin-bottom: 14px;
}
.module ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.module li {
  position: relative;
  padding-left: 28px;
}
.module li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 14px;
  height: 6px;
  background: linear-gradient(180deg, var(--signal) 0 33%, var(--silver) 33% 67%, var(--signal) 67%);
}
.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}
.photo-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Services list page ---------- */
.svc-grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 28px);
}
@media (min-width: 760px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .svc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.scard {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--soot-2);
  color: #fff;
  overflow: hidden;
}
.scard__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.scard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.scard__img img.is-cutout {
  object-fit: contain;
  background: #fff;
  padding: 6%;
}
.scard:hover .scard__img img {
  transform: scale(1.04);
}
.scard__body {
  padding: 20px 22px 24px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.scard h3 {
  font-size: var(--step-1);
  line-height: 1.35;
}
.scard h3 a {
  text-decoration: none;
}
.scard h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.scard p {
  color: #c9c3be;
  font-size: 0.97rem;
}

/* ---------- About ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  border-top: 1px solid var(--line);
}
.facts div {
  padding: 22px 20px 22px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  color: var(--steel);
  font-size: var(--step--1);
}
.facts dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.35;
}
.mission {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.45;
  max-width: 34ch;
}
.license {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 3vw, 36px);
  border-left: 6px solid var(--ember);
  background: #fff;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 72px;
  }
}
.big-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-5);
  line-height: 1.05;
  color: var(--ember);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  border-bottom: 6px solid var(--ember);
}
.channels {
  display: grid;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.channels a,
.channels div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.channels svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--ember);
}
.channels strong {
  display: block;
}
.channels span {
  color: var(--steel);
  font-size: 0.95rem;
}
.places {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}
.place {
  padding: 20px;
  background: var(--concrete);
}
.place h3 {
  font-size: var(--step-1);
}
.place p {
  margin-top: 6px;
}
.place small {
  display: block;
  margin-top: 8px;
  color: var(--steel);
}
.qr {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  margin-top: 24px;
  background: #fff;
}
.qr svg {
  width: 120px;
  height: 120px;
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 18px;
}
.form__row {
  display: grid;
  gap: 18px;
}
@media (min-width: 640px) {
  .form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: 6px;
}
.field label,
.field legend {
  font-weight: 600;
  font-size: 0.95rem;
}
.field .req {
  color: var(--ember);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid #bfb9b4;
  border-radius: var(--radius);
  background: #fff;
  font: 400 1rem/1.5 var(--font-body);
  color: var(--soot);
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(152, 31, 21, 0.18);
}
.field [aria-invalid='true'] {
  border-color: var(--ember-hot);
}
.field__error {
  color: var(--ember-hot);
  font-size: 0.9rem;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.check input {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  accent-color: var(--ember);
  flex: none;
}
.hp {
  position: absolute;
  left: -9999px;
}
.notice {
  padding: 16px 18px;
  border-left: 5px solid var(--ember);
  background: var(--concrete);
}
.notice--ok {
  border-left-color: #2e8b3c;
  background: #eef6ef;
}

/* ---------- Quote list ---------- */
.qlist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.qitem {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.qitem img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.qitem__title {
  font-weight: 600;
  line-height: 1.4;
}
.qitem__controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #bfb9b4;
  border-radius: var(--radius);
}
.qty button {
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  font-size: 1.2rem;
  cursor: pointer;
}
.qty input {
  width: 56px;
  height: 40px;
  border: 0;
  text-align: center;
  font: 600 1rem var(--font-body);
  -moz-appearance: textfield;
}
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.qremove {
  background: none;
  border: 0;
  color: var(--steel);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  min-height: 40px;
}
@media (max-width: 560px) {
  .qitem {
    grid-template-columns: 52px 1fr;
  }
  .qitem img {
    width: 52px;
    height: 52px;
  }
  .qitem__controls {
    grid-column: 1 / -1;
    justify-content: space-between;
  }
}
.quote-layout {
  display: grid;
  gap: 40px;
}
@media (min-width: 980px) {
  .quote-layout {
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: start;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--soot);
  color: #d9d4cf;
}
.site-footer__grid {
  display: grid;
  gap: 40px;
  padding-block: 64px 40px;
}
@media (min-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1.3fr 1fr 1.2fr 1fr;
  }
}
.site-footer h2 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.site-footer a {
  text-decoration: none;
  color: #d9d4cf;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-slogan {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.25;
  color: #fff;
  margin-top: 18px;
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: #fff;
}
.socials a:hover {
  background: var(--ember);
  border-color: var(--ember);
  text-decoration: none;
}
.socials svg {
  width: 20px;
  height: 20px;
}
.footer-qr {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-qr svg {
  width: 96px;
  height: 96px;
  background: #fff;
  padding: 6px;
  flex: none;
}
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line-dark);
  font-size: var(--step--1);
  color: #a39c96;
}

/* ---------- Reveal (progressive enhancement) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.8s var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 404 ---------- */
.nf {
  min-height: 60svh;
  display: grid;
  align-content: center;
  gap: 18px;
}
.nf__code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 20vw, 12rem);
  line-height: 1;
  color: var(--ember);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__media img {
    transform: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .marquee {
    mask-image: none;
  }
  .marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    gap: 12px;
  }
  .marquee__track [data-dup] {
    display: none;
  }
  /* static wall of ~37 logos: smaller cards keep it compact (3 per row on phones) */
  .marquee .logo-item {
    height: 64px;
    min-width: 0;
    padding: 6px 10px;
  }
  .marquee .logo-item img {
    max-height: 44px;
    max-width: 96px;
  }
}
