/* 3devicesCCELL tokens and type — built by Rank Ray https://rankray.com */
/* Breakpoints: xs 480 · sm 640 · md 768 · lg 992 · xl 1100 · 2xl 1580 */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Named faces: one family name per file, always weight 400 so
   `font-family: mon-b` works without also forcing font-weight: 700. */
@font-face { font-family: "mon-l"; src: url("../fonts/montserrat-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "mon-r"; src: url("../fonts/montserrat-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "mon-m"; src: url("../fonts/montserrat-500.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "mon-sb"; src: url("../fonts/montserrat-600.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "mon-b"; src: url("../fonts/montserrat-700.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "mon-eb"; src: url("../fonts/montserrat-800.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat_m"; src: url("../fonts/montserrat-500.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat_s"; src: url("../fonts/montserrat-600.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --jc-developer: "Rank Ray";
  --jc-developer-url: "https://rankray.com";
  --jc-color-primary: #0504aa;
  --jc-color-primary-hover: #1127b0;
  --jc-color-primary-soft: #d5def5;
  --jc-color-accent: #e9a171;
  --jc-color-cyan: #00adbb;
  --jc-color-text: #000000;
  --jc-color-ui-muted: #9ca3af;
  --jc-color-text-muted: var(--jc-color-text);
  --jc-color-text-subtle: var(--jc-color-text);
  --jc-bp-xs: 480px;
  --jc-bp-sm: 640px;
  --jc-bp-md: 768px;
  --jc-bp-lg: 992px;
  --jc-bp-xl: 1100px;
  --jc-bp-2xl: 1580px;
  --jc-type-body: clamp(0.9375rem, 0.2vw + 0.9rem, 1rem);
  --jc-type-crumb: 0.8125rem;
  --jc-type-h1: clamp(1.75rem, 3.75vw, 4.5rem);
  --jc-type-h2: clamp(1.375rem, 2.5vw, 2.25rem);
  --jc-type-h3: clamp(1.125rem, 1.8vw, 1.5rem);
  --jc-color-surface: #ffffff;
  --jc-color-surface-alt: #f8f8f8;
  --jc-product-box-home-bg: #edeceb;
  --jc-product-box-home-radius: 20px;
  --jc-product-box-catalog-bg: #ffffff;
  --jc-product-box-mega-bg: #f8f8f8;
  --jc-product-box-mega-gap: 0.2rem;
  --jc-product-box-mega-columns: 5;
  --jc-product-box-mega-media-height: 13.5rem;
  --jc-product-box-mega-img-height: 10rem;
  --jc-color-border: #dedede;
  --jc-font-sans: "mon-r", "Montserrat", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --jc-container: 1720px;
  --jc-gutter: 3%;
  --jc-space-1: 0.25rem;
  --jc-space-2: 0.5rem;
  --jc-space-3: 0.75rem;
  --jc-space-4: 1rem;
  --jc-space-6: 1.5rem;
  --jc-space-8: 2rem;
  --jc-space-12: 3rem;
  --jc-space-16: 4rem;
  --jc-radius: 2px;
  --jc-header-h: 100px;
  --jc-line: 1.5;
  --jc-hero-shadow-title: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 20px rgba(0, 0, 0, 0.3);
  --jc-hero-shadow-body: 0 1px 2px rgba(0, 0, 0, 0.35), 0 3px 14px rgba(0, 0, 0, 0.28);
  --jc-hero-shadow-crumb: 0 1px 3px rgba(0, 0, 0, 0.45);
  --jc-hero-overlay-center: radial-gradient(
    ellipse 58% 68% at 50% 46%,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.22) 42%,
    rgba(0, 0, 0, 0.1) 68%,
    transparent 100%
  );
  --jc-hero-overlay-left: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.32) 38%,
    rgba(0, 0, 0, 0.12) 62%,
    transparent 100%
  );
  --jc-hero-overlay-right: linear-gradient(
    270deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.32) 38%,
    rgba(0, 0, 0, 0.12) 62%,
    transparent 100%
  );
  --jc-banner-mobile-h: 350px;
  --jc-banner-tall-mobile-h: 485px;
  --jc-banner-home-h: 970px;
  --jc-banner-page-h: 860px;
  --jc-banner-j3-h: 930px;
  --jc-z-hero-media: 0;
  --jc-z-hero-vignette: 1;
  --jc-z-hero-overlay: 2;
  --jc-z-hero-ui: 3;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--jc-header-h) + 0.5rem);
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--jc-font-sans);
  font-size: var(--jc-type-body);
  font-weight: 400;
  line-height: var(--jc-line);
  color: var(--jc-color-text);
  background: var(--jc-color-surface);
  -webkit-font-smoothing: antialiased;
}

input::placeholder,
textarea::placeholder,
select:disabled,
input:disabled,
textarea:disabled {
  color: var(--jc-color-ui-muted);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--jc-color-primary);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--jc-space-4);
  font-weight: 700;
  line-height: 1.2;
  color: var(--jc-color-text);
}

p {
  margin: 0 0 var(--jc-space-4);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--jc-color-primary);
  color: #fff;
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: 94%;
  max-width: var(--jc-container);
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: var(--jc-radius);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.btn--primary {
  background: var(--jc-color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--jc-color-primary-hover);
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--jc-color-surface);
  border-bottom: 1px solid var(--jc-color-border);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--jc-space-6);
  min-height: var(--jc-header-h);
}

.site-header__wordmark,
.site-footer__wordmark {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jc-color-primary);
}

.site-header__nav {
  flex: 1;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--jc-space-4);
}

.nav-list__link,
.nav-list__btn {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  color: inherit;
}

.site-header__brand img,
.site-footer__logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
}

.site-footer__links a {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-list__item--mega {
  position: static;
}

.mega {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 50;
  padding: 1.5rem 3%;
  background: #fff;
  border-top: 1px solid var(--jc-color-border);
}

.nav-list__item--mega:hover .mega,
.nav-list__item--mega.is-open .mega,
.site-header.is-open .mega {
  display: block;
}

.mega__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: var(--jc-container);
  margin: 0 auto;
}

.mega__heading {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--jc-color-text);
}

.mega__product {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
  font-size: 0.9rem;
}

.mega__product img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #f5f5f5;
  border-radius: 8px;
}

.mega__all {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--jc-color-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.nav-list__item--drop {
  position: relative;
}

.drop {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16.5rem;
  padding: 0.65rem 0;
  background: #fff;
  border: 1px solid var(--jc-color-border);
  box-shadow: 0 10px 28px rgb(0 0 0 / 8%);
  z-index: 50;
}

.nav-list__item--drop:hover .drop,
.nav-list__item--drop.is-open .drop {
  display: block;
}

.drop a {
  display: block;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.drop a:hover {
  color: var(--jc-color-primary);
}

.site-header__cta {
  margin-left: auto;
  border-radius: 8px;
  text-transform: none;
}

.lang-switch {
  position: relative;
  flex-shrink: 0;
}

.lang-switch__btn {
  min-width: 3rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--jc-color-border);
  border-radius: var(--jc-radius);
  background: var(--jc-color-surface);
  color: var(--jc-color-text);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lang-switch__btn:hover,
.lang-switch.is-open .lang-switch__btn {
  border-color: var(--jc-color-primary);
  color: var(--jc-color-primary);
}

.lang-switch__list {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 10.5rem;
  padding: 0.35rem 0;
  background: var(--jc-color-surface);
  border: 1px solid var(--jc-color-border);
  box-shadow: 0 8px 24px rgb(0 0 0 / 8%);
  z-index: 50;
}

.lang-switch__option {
  display: block;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.lang-switch__option.is-on {
  color: var(--jc-color-primary);
  font-weight: 700;
}

.site-header__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-header__toggle-bars,
.site-header__toggle-bars::before,
.site-header__toggle-bars::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--jc-color-primary);
}

.site-header__toggle-bars {
  position: relative;
  margin: 0 auto;
}

.site-header__toggle-bars::before,
.site-header__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-header__toggle-bars::before {
  top: -6px;
}

.site-header__toggle-bars::after {
  top: 6px;
}

.hero__inner {
  position: relative;
  z-index: var(--jc-z-hero-overlay);
  padding: var(--jc-space-16) 0;
}

.hero__title {
  max-width: 18ch;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
}

.hero__lede {
  max-width: 42ch;
  font-size: 1.125rem;
  color: var(--jc-color-text-muted);
}

.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}

.section-lede {
  max-width: 52ch;
  color: var(--jc-color-text-muted);
}

.product-grid,
.tech-showcase,
.archive-products,
.archive-feed,
.page-article {
  padding: var(--jc-space-16) 0;
}

.product-grid__cats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--jc-space-3);
  margin-bottom: var(--jc-space-8);
}

.product-grid__cat {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--jc-color-border);
  font-size: 0.8125rem;
  font-weight: 600;
}

.product-grid__cat:hover,
.product-grid__cat.is-active {
  border-color: var(--jc-color-primary);
  color: var(--jc-color-primary);
}

.product-grid__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--jc-space-8);
}

.product-card__media {
  display: block;
  aspect-ratio: 1;
  background: var(--jc-color-surface-alt);
  margin-bottom: var(--jc-space-4);
}

.product-card__media img,
.product-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__title {
  font-size: 1.125rem;
}

.product-card__excerpt {
  color: var(--jc-color-text-muted);
  font-size: 0.875rem;
}

.tech-showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--jc-space-6);
  margin-top: var(--jc-space-8);
}

.tech-card {
  padding: var(--jc-space-8);
  background: var(--jc-color-surface-alt);
}

.cta-inquiry {
  background: var(--jc-color-primary);
  color: #fff;
  padding: var(--jc-space-16) 0;
}

.cta-inquiry__title,
.cta-inquiry .btn--primary {
  color: #fff;
}

.cta-inquiry .btn--primary {
  background: #fff;
  color: var(--jc-color-primary);
}

.cta-inquiry .btn--primary:hover {
  background: var(--jc-color-primary-soft);
}

.page-article__title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
}

.page-article__lede {
  max-width: 52ch;
  color: var(--jc-color-text-muted);
}

.page-article--legal {
  max-width: 46rem;
}

.page-article--legal .page-article__content {
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-article--legal .page-article__content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
}

.page-article--legal .page-article__content p {
  margin: 0 0 1rem;
}

.inquiry-form {
  display: grid;
  gap: var(--jc-space-4);
  max-width: 52rem;
}

.inquiry-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--jc-space-4);
}

.inquiry-form__field {
  display: grid;
  gap: var(--jc-space-2);
  font-size: 0.8125rem;
  font-weight: 600;
}

.inquiry-form input,
.inquiry-form textarea,
.inquiry-form select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--jc-color-border);
  border-radius: var(--jc-radius);
  font: inherit;
}

.inquiry-form__accounts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--jc-space-4);
}

.inquiry-form__account {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}

.inquiry-form__account input {
  width: auto;
  padding: 0;
}

.form-notice {
  padding: var(--jc-space-4);
  margin-bottom: var(--jc-space-6);
}

.form-notice--success {
  background: #daf7fc;
}

.form-notice--error {
  background: #fde8e8;
}

.product-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--jc-space-12);
  padding: var(--jc-space-12) 0;
}

.site-footer {
  padding: var(--jc-space-16) 0 var(--jc-space-8);
  border-top: 1px solid var(--jc-color-border);
  background: #f7f8fa;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) 2.1fr;
  gap: var(--jc-space-12);
  align-items: start;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--jc-space-6);
}

.site-footer__col-title {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: #00adef;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.site-footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__col li {
  margin: 0.45rem 0;
}

.site-footer__col a {
  color: var(--jc-color-text);
  font-size: 0.9rem;
}

.site-footer__subscribe {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  border-bottom: 1px solid #cfd4d8;
}

.site-footer__subscribe input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.7rem 0;
  font: inherit;
}

.site-footer__send {
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  color: #00adef;
}

.site-footer__consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--jc-color-text);
  font-weight: 400;
}

.site-footer__consent input {
  margin-top: 0.2rem;
}

.site-footer__note {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
}

.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--jc-color-border);
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-bottom: 0.75rem;
}

.site-footer__warning {
  max-width: 52rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--jc-color-text);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer__context {
  margin-left: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-list--inline {
  display: flex;
  gap: var(--jc-space-4);
}

@media (max-width: 1100px) {
  .product-grid__list,
  .tech-showcase__grid,
  .site-footer__top,
  .site-footer__cols,
  .product-hero {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .site-header__nav {
    display: none;
  }

  .site-header.is-open .site-header__nav {
    display: block;
    position: absolute;
    top: var(--jc-header-h);
    left: 0;
    right: 0;
    padding: var(--jc-space-4);
    background: var(--jc-color-surface);
    border-bottom: 1px solid var(--jc-color-border);
  }

  .site-header.is-open .nav-list {
    flex-direction: column;
    align-items: flex-start;
  }

  .mega {
    position: static;
    padding: 0.5rem 0 1rem;
    border: 0;
  }

  .mega__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .site-header__toggle {
    display: block;
  }

  .site-header__cta {
    display: none;
  }

  .site-header.is-open .site-header__cta {
    display: inline-flex;
    margin: 0.5rem 0 1rem;
  }

  .product-grid__list,
  .tech-showcase__grid,
  .inquiry-form__row,
  .site-footer__top,
  .site-footer__cols,
  .product-hero {
    grid-template-columns: 1fr;
  }
}

/* Scroll reveals. JS adds html.has-reveal + direction classes. */
@media (prefers-reduced-motion: no-preference) {
  html.has-reveal .js-reveal {
    opacity: 0;
    transform: translate3d(0, 160px, 0);
    transition: opacity 1s ease, transform 1s ease;
    transition-delay: var(--reveal-delay, 0s);
  }

  html.has-reveal .js-reveal--left {
    transform: translate3d(-8vw, 0, 0);
  }

  html.has-reveal .js-reveal--right {
    transform: translate3d(8vw, 0, 0);
  }

  html.has-reveal .js-reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

.woocommerce-Price-amount,
.woocommerce-Price-amount bdi,
.amount {
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.woocommerce-Price-currencySymbol {
  margin-right: 0.18em;
  letter-spacing: 0;
}

/* Shared banners, highlight slides, split media — Rank Ray.
   Page CSS may only add typography / unique alignment. Layout lives here. */
.jc-hero-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #111;
  margin-top: 0;
  padding-top: 0;
}

.jc-hero-banner--light {
  background: #fff;
}

.jc-hero-banner--viewport {
  width: 100%;
  max-width: 100%;
  /* 100vw includes iOS chrome and can widen the document; dvw tracks the visible width. */
  height: min(calc(100vw * 970 / 1920), var(--jc-banner-home-h));
  height: min(calc(100dvw * 970 / 1920), var(--jc-banner-home-h));
  max-height: min(
    var(--jc-banner-home-h),
    calc(100dvh - var(--navh, var(--jc-header-h)) - var(--jc-admin-bar, 0px))
  );
  min-height: 18rem;
}

.jc-hero-banner--bleed {
  height: 100vh;
  height: 100dvh;
  min-height: 18rem;
}

.jc-hero-banner--wide {
  height: min(44.8vw, var(--jc-banner-page-h));
  min-height: 18rem;
}

/* Heroes sit flush under the opaque fixed menu. padding-top is the header's
   own height (not extra gap) — the white bar covers this slot. Do not add
   --jc-admin-bar: WP already pads html.wp-toolbar. Do not add margin-top
   on the banner or the two offsets stack into a visible band. Home is a
   direct child of main (no wrapper). Generic .s-page keeps its own
   .s-hero padding — it is not a full-bleed top banner. */
.p-product,
.a-page,
.why-page,
.c-listing,
.j3,
.jc-contact,
.laser-page,
.jc-location,
.d-discover {
  padding-top: var(--navh, var(--jc-header-h, 100px));
}

.p-product {
  overflow-anchor: none;
}

.site-main:has(> .jc-hero-banner) {
  padding-top: var(--navh, var(--jc-header-h, 100px));
}

.p-dart,
.p-dart__shop-right,
.p-buy,
form.variations_form,
.single_variation_wrap {
  overflow-anchor: none;
}

.jc-hero-banner--wide.p-banner {
  margin-top: 0;
  height: min(44.8vw, var(--jc-banner-page-h, 860px));
  min-height: 0;
}

.jc-hero-banner--j3 {
  height: min(48.4375vw, var(--jc-banner-j3-h));
  min-height: 18rem;
}

.jc-hero-banner--flex {
  display: grid;
  align-items: end;
  height: auto;
  min-height: min(72vh, 40rem);
  background: var(--jc-color-surface-alt);
}

.jc-hero-banner__media,
.jc-hero-banner__track {
  position: absolute;
  inset: 0;
  z-index: var(--jc-z-hero-media);
}

.jc-hero-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s;
}

.jc-hero-banner__slide.is-on {
  opacity: 1;
  z-index: 1;
}

.jc-hero-banner__media img,
.jc-hero-banner__slide img,
.jc-hero-banner video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

.jc-hero-banner__mobile {
  display: none;
}

.jc-hero-banner--vignette-center::after,
.jc-hero-banner--vignette-start::after,
.jc-hero-banner--vignette-end::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--jc-z-hero-vignette);
  pointer-events: none;
}

.jc-hero-banner--vignette-center::after {
  background: var(--jc-hero-overlay-center);
}

.jc-hero-banner--vignette-start::after {
  background: var(--jc-hero-overlay-left);
}

.jc-hero-banner--vignette-end::after {
  background: var(--jc-hero-overlay-right);
}

.jc-hero-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: var(--jc-z-hero-overlay);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 6vw, 6rem) clamp(1rem, 8%, 8%);
  color: #fff;
  pointer-events: none;
}

.jc-hero-banner__overlay--center {
  align-items: center;
  text-align: center;
}

.jc-hero-banner__overlay--start {
  align-items: flex-start;
  text-align: left;
}

.jc-hero-banner__overlay--end {
  align-items: flex-end;
  text-align: right;
}

.jc-hero-banner__overlay h1,
.jc-hero-banner__overlay h2 {
  margin: 0;
  color: #fff;
  font-weight: 600;
  line-height: 1.05;
  font-size: clamp(1.75rem, 3.75vw, 4.5rem);
  text-shadow: var(--jc-hero-shadow-title);
}

.jc-hero-banner__overlay p {
  margin: 0.35rem 0 0;
  color: #fff;
  font-size: clamp(0.875rem, 0.94vw, 1.125rem);
  line-height: 2;
  text-shadow: var(--jc-hero-shadow-body);
}

@media (max-width: 1100px) and (min-width: 769px) {
  .jc-hero-banner--bleed {
    height: 48vw;
    max-height: 520px;
    min-height: 0;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: clip;
  }

  @supports not (overflow: clip) {
    html,
    body {
      overflow-x: hidden;
    }
  }

  /* Home hero: block iOS horizontal rubber-band when swiping the banner track. */
  .jc-hero-banner,
  .jc-hero-banner--viewport,
  .jc-hero-banner__track,
  .jc-hero-banner__slide {
    overflow: hidden;
    max-width: 100%;
    overscroll-behavior-x: none;
  }

  .jc-hero-banner__slide {
    display: block;
  }

  /* Inner pages + PDP: 350px cover crop, even when only desktop art exists. */
  .jc-hero-banner--wide {
    height: var(--jc-banner-mobile-h);
    min-height: 0;
    max-height: none;
  }

  /* CCELL 3.0: taller phone frame (750×1334 cover). */
  .jc-hero-banner--j3 {
    height: var(--jc-banner-tall-mobile-h);
    min-height: 0;
    max-height: none;
  }

  /* Homepage viewport: show full mobile art at intrinsic aspect ratio. */
  .jc-hero-banner--viewport {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .jc-hero-banner--viewport .jc-hero-banner__track {
    position: relative;
    inset: auto;
    height: auto;
  }

  .jc-hero-banner--viewport .jc-hero-banner__slide {
    position: absolute;
    inset: auto;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
  }

  .jc-hero-banner--viewport .jc-hero-banner__slide.is-on {
    position: relative;
    inset: auto;
  }

  .jc-hero-banner--viewport .jc-hero-banner__slide img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: unset;
    object-position: unset;
    transform: none;
  }

  /* PDP / catalog / brand pages with dedicated mobile art: intrinsic height, no 350px cover crop. */
  .jc-hero-banner--wide.jc-hero-banner--split {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .jc-hero-banner--wide.jc-hero-banner--split .jc-hero-banner__media,
  .jc-hero-banner--wide.jc-hero-banner--split .jc-hero-banner__track {
    position: relative;
    inset: auto;
    height: auto;
  }

  .jc-hero-banner--wide.jc-hero-banner--split .jc-hero-banner__slide {
    position: absolute;
    inset: auto;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
  }

  .jc-hero-banner--wide.jc-hero-banner--split .jc-hero-banner__slide.is-on {
    position: relative;
    inset: auto;
  }

  .jc-hero-banner--wide.jc-hero-banner--split img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: unset;
    object-position: unset;
    transform: none;
  }

  .jc-hero-banner:has(:is(img.jc-hero-banner__mobile, .jc-hero-banner__mobile img)) .jc-hero-banner__desk,
  .jc-hero-banner__slide:has(:is(img.jc-hero-banner__mobile, .jc-hero-banner__mobile img)) .jc-hero-banner__desk {
    display: none;
  }

  .jc-hero-banner :is(img.jc-hero-banner__mobile, .jc-hero-banner__mobile img) {
    display: block;
  }

  /* Flexible sections only: intrinsic height when there is no phone crop. */
  .jc-hero-banner--flex:not(.jc-hero-banner--split):not(:has(:is(img.jc-hero-banner__mobile, .jc-hero-banner__mobile img))) {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .jc-hero-banner--flex:not(.jc-hero-banner--split):not(:has(:is(img.jc-hero-banner__mobile, .jc-hero-banner__mobile img))) .jc-hero-banner__media,
  .jc-hero-banner--flex:not(.jc-hero-banner--split):not(:has(:is(img.jc-hero-banner__mobile, .jc-hero-banner__mobile img))) .jc-hero-banner__track {
    position: relative;
    inset: auto;
    height: auto;
  }

  .jc-hero-banner--flex:not(.jc-hero-banner--split):not(:has(:is(img.jc-hero-banner__mobile, .jc-hero-banner__mobile img))) .jc-hero-banner__slide {
    position: absolute;
    inset: 0;
    height: auto;
  }

  .jc-hero-banner--flex:not(.jc-hero-banner--split):not(:has(:is(img.jc-hero-banner__mobile, .jc-hero-banner__mobile img))) .jc-hero-banner__slide.is-on {
    position: relative;
  }

  .jc-hero-banner--flex:not(.jc-hero-banner--split):not(:has(:is(img.jc-hero-banner__mobile, .jc-hero-banner__mobile img))) img,
  .jc-hero-banner--flex:not(.jc-hero-banner--split):not(:has(:is(img.jc-hero-banner__mobile, .jc-hero-banner__mobile img))) video {
    height: auto;
    object-fit: contain;
    object-position: center top;
  }
}

/* Product rails (home devices, PDP explore, spotlight) — CCELL prev/next + coverflow */
:root {
  --jc-rail-nav-size: 4.25rem;
  --jc-rail-nav-size-sm: 2.75rem;
  --jc-rail-nav-border: rgba(130, 136, 145, 0.65);
  --jc-rail-nav-chevron: #8f959e;
  --jc-rail-scroll-duration: 1000ms;
}

[data-rail] [data-rail-scroller] {
  perspective: 1600px;
  perspective-origin: 50% 42%;
}

[data-rail] [data-rail-scroller] > * {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition:
    transform var(--jc-rail-scroll-duration) ease-in-out,
    opacity calc(var(--jc-rail-scroll-duration) * 0.85) ease-in-out;
  will-change: transform, opacity;
}

.h-rail__prev,
.h-rail__next,
.p-explore__prev,
.p-explore__next,
.s-404__rail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--jc-rail-nav-border);
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    opacity 0.25s ease;
}

.h-rail__prev:hover:not(.swiper-button-disabled),
.h-rail__next:hover:not(.swiper-button-disabled),
.p-explore__prev:hover,
.p-explore__next:hover,
.s-404__rail-btn:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.h-rail__prev::before,
.h-rail__next::before,
.p-explore__prev::before,
.p-explore__next::before,
.s-404__rail-btn::before {
  content: "";
  display: block;
  width: 0.62rem;
  height: 0.62rem;
  margin: 0 auto;
  border-right: 1.5px solid var(--jc-rail-nav-chevron);
  border-bottom: 1.5px solid var(--jc-rail-nav-chevron);
  transition: border-color 0.25s ease;
}

.h-rail__prev:hover:not(.swiper-button-disabled)::before,
.h-rail__next:hover:not(.swiper-button-disabled)::before,
.p-explore__prev:hover::before,
.p-explore__next:hover::before,
.s-404__rail-btn:hover::before {
  border-right-color: #fff;
  border-bottom-color: #fff;
}

.h-rail__prev::before,
.p-explore__prev::before,
.s-404__rail-btn--prev::before {
  transform: rotate(135deg);
}

.h-rail__next::before,
.p-explore__next::before,
.s-404__rail-btn--next::before {
  transform: rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --jc-rail-scroll-duration: 400ms;
  }

  [data-rail] [data-rail-scroller] > * {
    transition: opacity 0.35s ease;
    transform: none !important;
  }
}

.jc-vertical-scroll {
  position: relative;
  height: var(--jc-vertical-scroll-h, auto);
  margin-bottom: 0;
  overflow-anchor: none;
}

.jc-vertical-scroll__pin {
  position: sticky;
  top: var(--jc-admin-bar, 0px);
  height: calc(100dvh - var(--jc-admin-bar, 0px));
  overflow: hidden;
}

.jc-vertical-scroll-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--jc-admin-bar, 0px));
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.jc-vertical-scroll-slide.is-on {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.jc-vertical-scroll-slide__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.jc-vertical-scroll-slide__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jc-split-media-banner__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 4vw, 4%);
}

.jc-split-media-banner--reverse .jc-split-media-banner__box {
  flex-direction: row-reverse;
}

.jc-split-media-banner__media,
.jc-split-media-banner__copy {
  width: 50%;
  min-width: 0;
}

.jc-split-media-banner__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 992px) {
  .jc-split-media-banner__box,
  .jc-split-media-banner--reverse .jc-split-media-banner__box {
    flex-direction: column;
  }

  .jc-split-media-banner__media,
  .jc-split-media-banner__copy {
    width: 100%;
  }
}

/* Global product boxes — ccell.com: gray home rails (.hometw_box) vs white catalog cards (.pro_con) */
.jc-product-box {
  display: flex;
  flex-direction: column;
  color: var(--jc-color-text);
  text-decoration: none;
}

/* Homepage device rails — gray rounded box, bullet specs, More link */
.jc-product-box--home {
  justify-content: space-between;
  padding: 60px 32px 26px;
  border-radius: var(--jc-product-box-home-radius);
  background: var(--jc-product-box-home-bg);
}

.jc-product-box--home:hover {
  color: var(--jc-color-text);
}

.jc-product-box--home .jc-product-box__media {
  width: min(100%, 340px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.jc-product-box--home .jc-product-box__name {
  margin: 1.4rem 0 0;
  text-align: center;
  font-family: "mon-eb", "Montserrat", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: clamp(1rem, 1.9vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--jc-color-text);
}

.jc-product-box--home .jc-product-box__specs {
  margin: 0.95rem 0 0;
  flex: 1 1 auto;
  text-align: left;
}

.jc-product-box--home .jc-product-box__specs li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.2rem;
  font-family: "mon-r", "Montserrat", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: clamp(0.8rem, 1.05vw, 1.25rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--jc-color-text);
  overflow: visible;
}

.jc-product-box--home .jc-product-box__specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #000;
}

.jc-product-box--home .jc-product-box__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  color: var(--jc-color-primary);
  font-family: "mon-sb", "Montserrat", sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1.625rem);
  font-weight: 600;
}

.jc-product-box--home .jc-product-box__more img {
  width: 18px;
  height: auto;
  transition: transform 0.3s;
}

.jc-product-box--home:hover .jc-product-box__more img {
  transform: translateX(5px);
}

@media (max-width: 992px) {
  .jc-product-box--home {
    padding: 40px 24px 20px;
  }
}

@media (max-width: 768px) {
  .jc-product-box--home {
    padding: 30px;
  }
}

/* Catalog / bio / listing grids — white card on gray section, hover lift */
.jc-product-box--catalog {
  align-items: stretch;
  height: 100%;
  padding: 1.5rem 0.7rem 2.2rem;
  background: var(--jc-product-box-catalog-bg);
  text-align: center;
  position: relative;
  top: 0;
  transition: box-shadow 0.4s, top 0.4s;
}

.jc-product-box--catalog:hover {
  color: inherit;
  box-shadow: 0 0 10px rgb(0 0 0 / 10%);
  top: -8px;
}

.jc-product-box--catalog .jc-product-box__media {
  flex-shrink: 0;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 0.5rem;
  overflow: hidden;
  box-sizing: border-box;
}

.jc-product-box--catalog .jc-product-box__copy {
  width: 100%;
  min-width: 0;
  margin-top: 0.35rem;
  padding: 0 10px;
  box-sizing: border-box;
}

.jc-product-box--catalog .jc-product-box__copy h3 {
  margin: 0 0 0.35rem;
  width: 100%;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--jc-color-text);
}

.jc-product-box--catalog .jc-product-box__copy p {
  margin: 0;
  width: 100%;
  color: var(--jc-color-text);
  font-size: 0.9rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.9em;
}

.jc-product-box--catalog .jc-product-box__price,
.product-card__price {
  display: block;
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--jc-color-text, #111);
}

.jc-product-box--catalog .jc-product-box__price-from {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6b7280;
}

.jc-product-box--catalog .jc-product-box__capacity {
  display: block;
  margin-top: 0.85rem;
  color: var(--jc-color-cyan);
  font-size: 0.95rem;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .jc-product-box--catalog {
    padding: 1rem 0.35rem 1.4rem;
  }

  .jc-product-box--catalog .jc-product-box__media {
    padding: 0.75rem 0.35rem;
  }

  .jc-product-box--catalog .jc-product-box__copy {
    padding: 0 4px;
  }

  .jc-product-box--catalog .jc-product-box__copy h3 {
    font-size: clamp(0.8rem, 3.2vw, 1rem);
    line-height: 1.2;
  }

  .jc-product-box--catalog .jc-product-box__copy p {
    font-size: 0.75rem;
    min-height: 2.4em;
  }

  .jc-product-box--catalog .jc-product-box__capacity {
    margin-top: 0.5rem;
    font-size: 0.8rem;
  }
}

/* Shared product card image primitive (home, catalog, bio, archive) */
.jc-product-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  width: 100%;
  overflow: hidden;
  background: var(--jc-color-surface-alt);
}

.jc-product-box--home .jc-product-card__media,
.jc-product-box--catalog .jc-product-card__media {
  background: transparent;
}

.jc-product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  object-position: center;
}

.jc-product-box--home .jc-product-card__media img,
.jc-product-box--catalog .jc-product-card__media img,
.product-card__media.jc-product-card__media img {
  max-width: 100%;
  max-height: 100%;
}

/* Header mega menu product cards — ccell.com pro_nav_tab2 look via shared product box */
.jc-product-box--mega {
  flex: 0 0 calc((100% - (var(--jc-product-box-mega-columns) - 1) * var(--jc-product-box-mega-gap)) / var(--jc-product-box-mega-columns));
  max-width: calc((100% - (var(--jc-product-box-mega-columns) - 1) * var(--jc-product-box-mega-gap)) / var(--jc-product-box-mega-columns));
  color: var(--jc-color-text);
  text-decoration: none;
}

.jc-product-box--mega:hover {
  color: var(--jc-color-text);
}

.jc-product-box--mega .jc-product-box__media {
  display: flex;
  justify-content: center;
  align-items: center;
  height: var(--jc-product-box-mega-media-height);
  background: var(--jc-product-box-mega-bg);
}

.jc-product-box--mega .jc-product-box__media img {
  height: var(--jc-product-box-mega-img-height);
  width: auto;
  max-width: 90%;
  object-fit: contain;
  position: relative;
  top: 0;
  transition: top 0.6s;
}

.jc-product-box--mega:hover .jc-product-box__media img {
  top: -10px;
}

.jc-product-box--mega .jc-product-box__name {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.3;
}

/* Cart drawer shell — footer outputs drawer on every page; keep closed state off-canvas */
.jc-cart {
  position: fixed;
  inset: 0;
  z-index: 12000;
  pointer-events: none;
}

.jc-cart[aria-hidden="true"]:not(.is-open) {
  visibility: hidden;
}
