/* =========================================================
   Jerid Tex Tile — Luxury E-commerce Design System  (v2)
   ---------------------------------------------------------
   Tokens  : warm near-black ink + gold accent
   Type    : Cormorant (display serif) / Montserrat (body sans)
   Rules   : hairline borders, generous rhythm, restrained motion
   A11y    : gold TEXT uses --lux-gold-ink (>=4.5:1 on light);
             --lux-gold is reserved for fills, borders and on-dark text
   ========================================================= */

.jerid-root {
  /* ---------- brand palette ---------- */
  --lux-ink: #0c0a09; /* near-black, warm */
  --lux-primary: #1c1917; /* charcoal — dark surfaces / fills */
  --lux-secondary: #44403c; /* secondary text on light */
  --lux-body: #57534e; /* body copy on light */

  --lux-gold: #ca8a04; /* accents on dark, borders, fills */
  --lux-gold-ink: #8a5a00; /* AA-safe gold for TEXT on light */
  --lux-gold-bright: #eab308; /* hover state on dark fills */
  --lux-gold-soft: rgba(202, 138, 4, 0.1);
  --lux-gold-line: rgba(202, 138, 4, 0.34);

  --lux-bg: #fafaf9;
  --lux-bg-soft: #f5f5f4;
  --lux-surface: #ffffff;
  --lux-line: #e7e5e4;
  --lux-line-soft: #f0efee;
  --lux-muted: #78716c;
  --lux-muted-2: #a8a29e; /* decorative marks only — never body text */
  --lux-on-dark: #fafaf9;
  --lux-on-dark-muted: rgba(250, 250, 249, 0.74);

  /* ---------- elevation ---------- */
  --lux-shadow: 0 12px 40px rgba(28, 25, 23, 0.06);
  --lux-shadow-hover: 0 20px 52px rgba(28, 25, 23, 0.13);

  /* ---------- geometry & motion ---------- */
  --lux-radius: 2px;
  --lux-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lux-duration: 280ms;
  --lux-slow: 620ms;
  --jerid-max: 1280px;
  --jerid-header-h: 96px;

  /* ---------- type stacks ----------
     Role rule (site-wide):
       display/headings → Cormorant only
       UI/body/nav/CTA/sidebar → Montserrat only
     Do not mix serif into small UI labels.
  */
  --font-lux-heading: "Cormorant";
  --font-lux-body: "Montserrat";
  --jerid-heading: "Cormorant", Georgia, "Times New Roman", serif;
  --jerid-font: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* ---------- legacy aliases (kept for compatibility) ---------- */
  --jerid-green: #1c1917;
  --jerid-orange: #ca8a04;
  --jerid-text: #0c0a09;
  --jerid-muted: #78716c;
  --jerid-muted-2: #a8a29e;
  --jerid-line: #e7e5e4;
  --jerid-bg-soft: #f5f5f4;
  --jerid-white: #ffffff;
  --jerid-dark: #1c1917;

  margin: 0;
  color: var(--lux-body);
  font-size: 16px;
  font-family: var(--jerid-font);
  font-weight: 400;
  background: var(--lux-bg);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.jerid-root,
.jerid-root * {
  box-sizing: border-box;
}

.jerid-root img {
  max-width: 100%;
  border: 0;
  vertical-align: middle;
}

.jerid-root a {
  color: inherit;
  outline: none;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: color var(--lux-duration) var(--lux-ease);
}

.jerid-root a,
.jerid-root em,
.jerid-root i,
.jerid-root span {
  display: inline-block;
}

.jerid-root ul,
.jerid-root li,
.jerid-root ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Typography baseline ----------
   Headings carry the display serif; body copy stays in the sans.
   (v1 applied Cormorant to <p> as well, which rendered paragraphs in a
   thin display serif at 300–500 weight — poor readability.)            */
.jerid-root h1,
.jerid-root h2,
.jerid-root h3,
.jerid-root h4,
.jerid-root h5,
.jerid-root h6,
.jerid-root figure {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--lux-ink);
  font-weight: 500;
  font-family: var(--jerid-heading);
  letter-spacing: 0.01em;
  line-height: 1.22;
  text-wrap: balance;
}

.jerid-root p {
  margin: 0;
  padding: 0;
  color: var(--lux-body);
  font-family: var(--jerid-font);
  font-weight: 400;
  line-height: 1.75;
}

.jerid-root :focus-visible {
  outline: 2px solid var(--lux-gold);
  outline-offset: 3px;
}

.jerid-root ::placeholder {
  color: var(--lux-muted);
  opacity: 1;
}

.jerid-mauto {
  max-width: var(--jerid-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 1680px) {
  .jerid-mauto {
    max-width: min(1280px, 92%);
  }
}

@media (max-width: 768px) {
  .jerid-mauto {
    max-width: 100%;
  }
}

/* ---------- Section titles ---------- */
/* Beat .jerid-root h2 { padding: 0 } so decorative rules keep breathing room. */
.jerid-root .jerid-section-title,
.jerid-section-title {
  color: var(--lux-ink);
  position: relative;
  text-align: center;
  padding-top: 36px;
  padding-bottom: 32px;
  margin-bottom: 10px;
}

/* gold hairline above the title */
.jerid-root .jerid-section-title::before,
.jerid-section-title::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 34px;
  height: 1px;
  background: var(--lux-gold);
  opacity: 0.9;
  transform: translateX(-50%);
}

.jerid-root .jerid-section-title em,
.jerid-section-title em {
  display: block;
  color: var(--lux-ink);
  font-size: clamp(28px, 3.1vw, 42px);
  font-weight: 400;
  font-style: normal;
  font-family: var(--jerid-heading);
  letter-spacing: 0.015em;
  line-height: 1.26;
}

/* underline that lengthens on section hover */
.jerid-root .jerid-section-title::after,
.jerid-section-title::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 46px;
  height: 1px;
  background: var(--lux-gold);
  transform: translateX(-50%);
  transition: width var(--lux-slow) var(--lux-ease);
}

.jerid-section:hover .jerid-section-title::after {
  width: 104px;
}

/* ---------- Scroll reveal ---------- */
.jerid-wow {
  opacity: 0;
  animation-fill-mode: both;
  animation-duration: 0.85s;
  animation-timing-function: var(--lux-ease);
}

.jerid-wow.is-visible {
  opacity: 1;
}

.jerid-wow.is-visible.jerid-fade-in-up {
  animation-name: jeridFadeInUpA;
}
.jerid-wow.is-visible.jerid-fade-in-left {
  animation-name: jeridFadeInLeftA;
}
.jerid-wow.is-visible.jerid-fade-in-right {
  animation-name: jeridFadeInRightA;
}

@keyframes jeridFadeInUpA {
  0% {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes jeridFadeInLeftA {
  0% {
    opacity: 0;
    transform: translate3d(-14%, 0, 0);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes jeridFadeInRightA {
  0% {
    opacity: 0;
    transform: translate3d(14%, 0, 0);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jerid-wow,
  .jerid-banner-track,
  .jerid-product-card .jerid-imgs img,
  .jerid-list-card img,
  .jerid-more a,
  .jerid-head-nav > li > ul,
  .jerid-partner-track {
    animation: none !important;
    transition: none !important;
  }
  .jerid-wow {
    opacity: 1;
  }
}

/* =========================================================
   Header
   ========================================================= */
.jerid-header {
  position: sticky;
  top: 0;
  z-index: 99;
  width: 100%;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--lux-duration) var(--lux-ease),
    background var(--lux-duration) var(--lux-ease),
    box-shadow var(--lux-duration) var(--lux-ease);
}

/* signature gold hairline along the very top */
.jerid-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--lux-gold-line) 22%,
    var(--lux-gold) 50%,
    var(--lux-gold-line) 78%,
    transparent 100%
  );
  opacity: 0.85;
}

.jerid-header.is-scrolled {
  border-bottom-color: var(--lux-line);
  background: rgba(250, 250, 249, 0.97);
  box-shadow: 0 10px 34px rgba(28, 25, 23, 0.06);
}

.jerid-header .jerid-head-layer {
  background: transparent;
  padding: 0 32px;
}

.jerid-header .jerid-nav-main {
  max-width: var(--jerid-max);
  margin: 0 auto;
  height: var(--jerid-header-h);
  display: flex;
  align-items: center;
  position: relative;
  padding-right: 320px;
}

.jerid-logo {
  padding: 10px 28px 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

.jerid-logo a {
  display: block;
  width: 236px;
  max-width: 22vw;
}

.jerid-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.jerid-nav {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
}

.jerid-head-nav {
  display: inline-block;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

.jerid-head-nav > li {
  display: inline-block;
  line-height: 1.2;
  position: relative;
  vertical-align: middle;
  padding-bottom: 4px;
  margin: 0 1px;
}

.jerid-head-nav > li > a {
  position: relative;
  display: inline-block;
  vertical-align: top;
  padding: 0 11px;
  color: var(--lux-secondary);
  font-family: var(--jerid-font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color var(--lux-duration) var(--lux-ease);
}

/* gold underline on hover — grows from the centre */
.jerid-head-nav > li > a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: -6px;
  height: 1px;
  background: var(--lux-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--lux-duration) var(--lux-ease);
}

.jerid-head-nav > li:hover > a::after,
.jerid-head-nav > li.is-current > a::after {
  transform: scaleX(1);
}

.jerid-head-nav > li > a > em {
  font-style: normal;
  font-size: 12px;
  display: inline-block;
  letter-spacing: 0.1em;
}

.jerid-head-nav > li.is-current > a,
.jerid-head-nav > li:hover > a {
  color: var(--lux-gold-ink);
}

.jerid-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.7;
  transition: transform var(--lux-duration) var(--lux-ease),
    opacity var(--lux-duration) var(--lux-ease);
}

.jerid-head-nav > li:hover > a .jerid-caret {
  opacity: 1;
  transform: rotate(180deg);
}

/* dropdown */
.jerid-head-nav > li > ul {
  width: 248px;
  padding: 14px 0;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transform-origin: center 0;
  background: var(--lux-surface);
  border: 1px solid var(--lux-line);
  border-top: 2px solid var(--lux-gold);
  box-shadow: var(--lux-shadow-hover);
  transition: opacity var(--lux-duration) var(--lux-ease),
    transform var(--lux-duration) var(--lux-ease),
    visibility var(--lux-duration) var(--lux-ease);
}

.jerid-head-nav > li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.jerid-head-nav li li a {
  display: block;
  padding: 10px 22px;
  color: var(--lux-secondary);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.45;
  transition: color var(--lux-duration) var(--lux-ease),
    background var(--lux-duration) var(--lux-ease),
    padding-left var(--lux-duration) var(--lux-ease);
}

.jerid-head-nav li li a:hover {
  color: var(--lux-gold-ink);
  background: var(--lux-bg);
  padding-left: 26px;
}

.jerid-head-right {
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 22px;
}

.jerid-lang {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.jerid-lang-title a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lux-secondary);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.jerid-lang-title a:hover {
  color: var(--lux-gold-ink);
}

.jerid-flag {
  display: inline-block;
  width: 22px;
  height: 16px;
  background-image: url("/static/images/lang-flag.png");
  background-repeat: no-repeat;
  background-position: 0 -22px;
  flex-shrink: 0;
  border: 1px solid var(--lux-line);
}

.jerid-search {
  display: inline-block;
  position: relative;
  vertical-align: middle;
}

.jerid-search input {
  display: block;
  width: 216px;
  height: 40px;
  padding-left: 16px;
  padding-right: 46px;
  border: 1px solid var(--lux-line);
  background-color: var(--lux-surface);
  color: var(--lux-ink);
  font-family: var(--jerid-font);
  font-size: 12px;
  outline: none;
  transition: border-color var(--lux-duration) var(--lux-ease),
    box-shadow var(--lux-duration) var(--lux-ease);
}

.jerid-search input:focus {
  border-color: var(--lux-gold);
  box-shadow: 0 0 0 3px var(--lux-gold-soft);
}

.jerid-search button {
  position: absolute;
  right: 0;
  top: 0;
  width: 42px;
  height: 40px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: var(--lux-primary);
  color: var(--lux-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--lux-duration) var(--lux-ease),
    color var(--lux-duration) var(--lux-ease);
}

.jerid-search button:hover {
  background: var(--lux-gold);
  color: var(--lux-primary);
}

.jerid-burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 11px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.jerid-burger span {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: var(--lux-ink);
  transition: background var(--lux-duration) var(--lux-ease);
}

.jerid-burger:hover span {
  background: var(--lux-gold-ink);
}

.jerid-mobile-drawer {
  display: none;
}

@media (max-width: 1440px) {
  .jerid-header .jerid-nav-main {
    padding-right: 300px;
  }
  .jerid-head-nav > li > a {
    padding: 0 10px;
    font-size: 11.5px;
    letter-spacing: 0.08em;
  }
  .jerid-head-nav > li > a::after {
    left: 10px;
    right: 10px;
  }
  .jerid-search input {
    width: 180px;
  }
}

@media (max-width: 1180px) {
  .jerid-header .jerid-nav-main {
    height: 76px;
    padding-right: 0;
  }
  .jerid-nav,
  .jerid-head-right {
    display: none;
  }
  .jerid-burger {
    display: block;
  }
  .jerid-logo a {
    width: 180px;
    max-width: 48vw;
  }
  .jerid-mobile-drawer.is-open {
    display: block;
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--lux-bg);
    z-index: 98;
    overflow: auto;
    padding: 28px 24px 48px;
  }
  .jerid-mobile-drawer a {
    display: block;
    padding: 15px 4px;
    border-bottom: 1px solid var(--lux-line);
    color: var(--lux-ink);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .jerid-mobile-drawer a:hover {
    color: var(--lux-gold-ink);
  }
  .jerid-mobile-drawer .sub a {
    padding-left: 16px;
    color: var(--lux-secondary);
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: none;
  }
}

/* =========================================================
   Hero banner
   ========================================================= */
.jerid-banner {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: min(74vh, 700px);
  min-height: 420px;
  background: var(--lux-primary);
}

/* soft vignette so the controls stay legible on any image */
.jerid-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 10, 9, 0.24) 0%,
    rgba(12, 10, 9, 0) 26%,
    rgba(12, 10, 9, 0) 66%,
    rgba(12, 10, 9, 0.34) 100%
  );
}

.jerid-banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s var(--lux-ease);
}

.jerid-banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.jerid-banner-slide a,
.jerid-banner-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jerid-banner-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(250, 250, 249, 0.4);
  background: rgba(12, 10, 9, 0.24);
  color: #fafaf9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background var(--lux-duration) var(--lux-ease),
    border-color var(--lux-duration) var(--lux-ease),
    color var(--lux-duration) var(--lux-ease),
    opacity var(--lux-duration) var(--lux-ease);
}

.jerid-banner-btn:hover {
  background: var(--lux-gold);
  border-color: var(--lux-gold);
  color: var(--lux-primary);
  opacity: 1;
}

.jerid-banner-btn.prev {
  left: 32px;
}
.jerid-banner-btn.next {
  right: 32px;
}

.jerid-banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

/* 44px hit area around an 8px visual dot */
.jerid-banner-dots button {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.jerid-banner-dots button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(250, 250, 249, 0.75);
  background: transparent;
  transform: translate(-50%, -50%);
  transition: background var(--lux-duration) var(--lux-ease),
    border-color var(--lux-duration) var(--lux-ease),
    transform var(--lux-duration) var(--lux-ease);
}

.jerid-banner-dots button:hover::after {
  transform: translate(-50%, -50%) scale(1.25);
}

.jerid-banner-dots button.is-active::after {
  background: var(--lux-gold);
  border-color: var(--lux-gold);
  transform: translate(-50%, -50%) scale(1.25);
}

@media (max-width: 768px) {
  .jerid-banner {
    height: 54vh;
    min-height: 280px;
  }
  .jerid-banner-btn {
    width: 44px;
    height: 44px;
  }
  .jerid-banner-btn.prev {
    left: 12px;
  }
  .jerid-banner-btn.next {
    right: 12px;
  }
}

/* =========================================================
   Products
   ========================================================= */
.jerid-products {
  position: relative;
  overflow: hidden;
  padding: 104px 0 88px;
  background: var(--lux-bg);
}

.jerid-products .jerid-intro {
  max-width: 800px;
  margin: 0 auto;
  padding: 26px 0 56px;
  color: var(--lux-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  text-align: center;
}

/* CSS Grid replaces the old inline-block / 33% layout, which inserted
   whitespace gaps between list items and could force a 3rd-column wrap. */
.jerid-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
  margin: 0;
  padding: 0;
}

.jerid-products-grid > li {
  display: block;
  width: auto;
  min-width: 0;
}

.jerid-product-card {
  margin: 0;
  height: 100%;
}

.jerid-product-card > a {
  display: block;
  text-align: center;
  cursor: pointer;
}

.jerid-product-card .jerid-imgs {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--lux-line);
  background: #1c1917;
  isolation: isolate;
  transition: border-color var(--lux-duration) var(--lux-ease),
    box-shadow var(--lux-duration) var(--lux-ease);
}

.jerid-product-card .jerid-imgs img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--lux-slow) var(--lux-ease);
}

.jerid-product-card:hover .jerid-imgs {
  border-color: var(--lux-gold-line);
  box-shadow: var(--lux-shadow-hover);
}

.jerid-product-card:hover .jerid-imgs img {
  transform: scale(1.05);
}

.jerid-product-card .jerid-info {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--lux-duration) var(--lux-ease),
    visibility var(--lux-duration) var(--lux-ease);
}

.jerid-product-card:hover .jerid-info,
.jerid-product-card > a:focus-visible .jerid-info {
  opacity: 1;
  visibility: visible;
}

.jerid-product-card .jerid-info i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 1px solid var(--lux-gold);
  color: var(--lux-gold-bright, #eab308);
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
}

.jerid-product-card h3 {
  display: block;
  width: 100%;
  margin-top: 20px;
  overflow: hidden;
  color: var(--lux-ink);
  font-family: var(--jerid-heading);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--lux-duration) var(--lux-ease);
}

.jerid-product-card:hover h3 {
  color: var(--lux-gold-ink);
}

@media (max-width: 1024px) {
  .jerid-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }
}

@media (max-width: 768px) {
  .jerid-products {
    padding: 64px 0 48px;
  }
  .jerid-products .jerid-intro {
    padding: 20px 0 36px;
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  .jerid-products-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================
   About
   ========================================================= */
.jerid-about {
  position: relative;
  overflow: hidden;
  padding: 128px 0 112px;
  background: linear-gradient(rgba(12, 10, 9, 0.62), rgba(12, 10, 9, 0.62)),
    url("/static/images/about-bg.jpg") no-repeat
      center;
  background-size: cover;
  background-attachment: fixed;
}

.jerid-about .jerid-about-label {
  display: block;
  margin-bottom: 30px;
  color: var(--lux-gold);
  font-family: var(--jerid-font);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.jerid-about-row {
  display: flex;
  align-items: stretch;
  gap: 56px;
}

.jerid-about-left {
  flex: 1 1 52%;
  min-width: 0;
}

.jerid-about-left video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  border: 1px solid rgba(250, 250, 249, 0.14);
}

.jerid-about-right {
  flex: 1 1 48%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.jerid-about-right h2 {
  margin-top: 0;
  color: var(--lux-on-dark);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-align: right;
  text-transform: none;
}

.jerid-about-right .jerid-about-copy {
  margin: 22px 0 34px;
}

.jerid-about-right .jerid-about-copy p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--lux-on-dark-muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

.jerid-more {
  text-align: right;
}

.jerid-more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  min-width: 132px;
  padding: 0 30px;
  border: 1px solid var(--lux-gold);
  border-radius: var(--lux-radius);
  background: var(--lux-gold);
  color: var(--lux-primary);
  font-family: var(--jerid-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--lux-duration) var(--lux-ease),
    border-color var(--lux-duration) var(--lux-ease),
    color var(--lux-duration) var(--lux-ease);
}

.jerid-more a svg {
  transition: transform var(--lux-duration) var(--lux-ease);
}

.jerid-more a:hover {
  background: transparent;
  color: var(--lux-gold);
}

.jerid-more a:hover svg {
  transform: translateX(4px);
}

.jerid-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 768px;
  z-index: 1;
  color: var(--lux-bg); /* path uses currentColor — stays in sync */
  transform: scaleY(-1);
  pointer-events: none;
}

@media (max-width: 950px) {
  .jerid-about {
    padding: 76px 0 56px;
    background-attachment: scroll;
  }
  .jerid-about-row {
    flex-direction: column;
    gap: 28px;
  }
  .jerid-about-left,
  .jerid-about-right {
    flex: 1 1 100%;
    width: 100%;
  }
  .jerid-about-right {
    padding: 26px;
    border: 1px solid rgba(250, 250, 249, 0.1);
    background: rgba(12, 10, 9, 0.4);
  }
  .jerid-about-right h2 {
    font-size: 28px;
    text-align: left;
  }
  .jerid-more {
    text-align: left;
  }
  .jerid-wave {
    display: none;
  }
}

/* =========================================================
   News
   ========================================================= */
.jerid-news {
  padding: 96px 0 88px;
  background: var(--lux-bg);
}

.jerid-news-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 28px;
  margin-top: 52px;
}

.jerid-news-side-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: 1;
  min-width: 0;
}

.jerid-news-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--lux-line);
  background: var(--lux-surface);
  transition: border-color var(--lux-duration) var(--lux-ease),
    box-shadow var(--lux-duration) var(--lux-ease);
}

.jerid-news-item:hover {
  border-color: var(--lux-gold-line);
  box-shadow: var(--lux-shadow);
}

.jerid-news-item a {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}

.jerid-news-item.is-featured {
  display: flex;
  flex: 1;
  min-width: 0;
}

.jerid-news-item.is-featured a {
  flex: 1;
}

.jerid-news-item.is-side {
  flex: 1;
  min-width: 0;
}

.jerid-news-item.is-side a {
  flex-direction: row;
  min-height: 100%;
}

.jerid-news-item.is-side .jerid-news-img {
  width: 55%;
  flex-shrink: 0;
}

.jerid-news-item.is-side .jerid-news-content {
  width: 45%;
  padding: 24px 24px 20px;
  overflow: hidden;
  background: var(--lux-surface);
}

.jerid-news-item.is-featured .jerid-news-img {
  flex: 1;
  min-height: 288px;
}

.jerid-news-item.is-featured .jerid-news-img img {
  height: 100%;
  object-fit: cover;
}

.jerid-news-item .jerid-news-img {
  overflow: hidden;
  background-color: var(--lux-bg-soft);
}

.jerid-news-item .jerid-news-img img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform var(--lux-slow) var(--lux-ease);
}

.jerid-news-item:hover .jerid-news-img img {
  transform: scale(1.04);
}

.jerid-news-item .jerid-news-content {
  padding: 24px;
  background: var(--lux-surface);
}

.jerid-news-item .jerid-news-title {
  width: 100%;
  margin-bottom: 12px;
  overflow: hidden;
  color: var(--lux-ink);
  font-family: var(--jerid-heading);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jerid-news-item em {
  display: block;
  width: 100%;
  color: var(--lux-gold-ink);
  font-family: var(--jerid-font);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.jerid-news-item .jerid-read-more {
  display: inline-block;
  width: 100%;
  margin-top: 16px;
  color: var(--lux-gold-ink);
  font-family: var(--jerid-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.jerid-news-item.is-featured .jerid-news-title {
  display: -webkit-box;
  font-size: 23px;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.jerid-news-item.is-side .jerid-news-title {
  display: -webkit-box;
  font-size: 16px;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 950px) {
  .jerid-news {
    padding: 64px 0 56px;
  }
  .jerid-news-list {
    flex-direction: column;
    margin-top: 36px;
  }
  .jerid-news-item.is-side a {
    flex-direction: column;
  }
  .jerid-news-item.is-side .jerid-news-img,
  .jerid-news-item.is-side .jerid-news-content {
    width: 100%;
  }
  .jerid-news-item .jerid-news-title {
    white-space: normal;
  }
}

/* =========================================================
   Partners
   ========================================================= */
.jerid-partner {
  position: relative;
  padding: 56px 0 104px;
  background: var(--lux-bg);
}

.jerid-partner-wrap {
  position: relative;
  max-width: var(--jerid-max);
  margin: 52px auto 0;
  padding: 0 24px;
}

.jerid-partner-track-wrap {
  overflow: hidden;
}

.jerid-partner-track {
  display: flex;
  transition: transform 0.8s var(--lux-ease);
  gap: 24px;
}

.jerid-partner-slide {
  flex: 0 0 calc((100% - 72px) / 4);
  min-width: 0;
}

.jerid-partner-cover {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  border: 1px solid var(--lux-line);
  background: var(--lux-surface);
  transition: border-color var(--lux-duration) var(--lux-ease),
    box-shadow var(--lux-duration) var(--lux-ease);
}

.jerid-partner-slide:hover .jerid-partner-cover {
  border-color: var(--lux-gold-line);
  box-shadow: var(--lux-shadow);
}

.jerid-partner-cover img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 30px;
  object-fit: contain;
  object-position: center;
  box-sizing: border-box;
  filter: grayscale(1) opacity(0.72);
  transition: filter var(--lux-duration) var(--lux-ease);
}

.jerid-partner-slide:hover img {
  filter: grayscale(0) opacity(1);
}

.jerid-partner-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 1px solid var(--lux-line);
  border-radius: 50%;
  background: var(--lux-surface);
  color: var(--lux-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--lux-duration) var(--lux-ease),
    border-color var(--lux-duration) var(--lux-ease),
    color var(--lux-duration) var(--lux-ease);
}

.jerid-partner-nav:hover {
  border-color: var(--lux-primary);
  background: var(--lux-primary);
  color: var(--lux-gold);
}

.jerid-partner-nav.prev {
  left: -6px;
}
.jerid-partner-nav.next {
  right: -6px;
}

@media (max-width: 1200px) {
  .jerid-partner-slide {
    flex: 0 0 calc((100% - 48px) / 3);
  }
}

@media (max-width: 768px) {
  .jerid-partner {
    padding: 40px 0 64px;
  }
  .jerid-partner-wrap {
    margin-top: 36px;
  }
  .jerid-partner-slide {
    flex: 0 0 100%;
  }
  .jerid-partner-track {
    gap: 16px;
  }
  .jerid-partner-nav {
    display: none;
  }
}

/* =========================================================
   Footer
   ========================================================= */
.jerid-footer {
  position: relative;
  color: var(--lux-on-dark);
  background: linear-gradient(rgba(12, 10, 9, 0.8), rgba(12, 10, 9, 0.9)),
    url("/static/images/footer-bg.jpg") no-repeat
      center;
  background-size: cover;
}

.jerid-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--lux-gold-line) 25%,
    var(--lux-gold) 50%,
    var(--lux-gold-line) 75%,
    transparent 100%
  );
}

.jerid-email {
  padding: 92px 0 0;
}

.jerid-email .jerid-section-title em {
  color: var(--lux-on-dark);
}

.jerid-email .jerid-section-title::before,
.jerid-email .jerid-section-title::after {
  background: var(--lux-gold);
}

.jerid-email p {
  padding: 22px 0 30px;
  color: var(--lux-on-dark-muted);
  font-family: var(--jerid-font);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-align: center;
}

.jerid-email-form {
  padding-bottom: 44px;
  text-align: center;
}

.jerid-email-form input[type="email"] {
  width: min(420px, 70%);
  height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(250, 250, 249, 0.24);
  border-radius: var(--lux-radius);
  background: rgba(250, 250, 249, 0.06);
  color: var(--lux-on-dark);
  font-family: var(--jerid-font);
  font-size: 14px;
  vertical-align: middle;
  outline: none;
  transition: border-color var(--lux-duration) var(--lux-ease),
    background var(--lux-duration) var(--lux-ease);
}

.jerid-email-form input[type="email"]::placeholder {
  color: rgba(250, 250, 249, 0.5);
}

.jerid-email-form input[type="email"]:focus {
  border-color: var(--lux-gold);
  background: rgba(250, 250, 249, 0.1);
}

.jerid-email-form button {
  height: 52px;
  margin-left: 10px;
  padding: 0 30px;
  border: 1px solid var(--lux-gold);
  border-radius: var(--lux-radius);
  background: var(--lux-gold);
  color: var(--lux-primary);
  font-family: var(--jerid-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  vertical-align: middle;
  transition: background var(--lux-duration) var(--lux-ease),
    color var(--lux-duration) var(--lux-ease);
}

.jerid-email-form button:hover {
  background: transparent;
  color: var(--lux-gold);
}

.jerid-footer-head {
  /* 原来这里是 16px —— 因为上方有 .jerid-email 区块用 92px 的 padding-top 撑着。
     邮件区块下线后，社交图标直接顶到金色分割线下面，整块页脚只剩 200px 出头，
     又扁又挤。这里把顶部留白补回来，让内容在深色底里居中呼吸。 */
  padding-top: 56px;
}

.jerid-social {
  margin-bottom: 22px;
  text-align: center;
}

.jerid-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 原来是「高度固定 + 宽度自适应」的文字胶囊（Facebook / WhatsApp… 长标签会戳出圆框）。
     换成 SVG 图标后不再需要给文字让位，统一收成 44px 圆形按钮。
     图标用 fill: currentColor，悬停换 color 即整枚图标变金。 */
  width: 44px;
  height: 44px;
  margin: 0 6px;
  border: 1px solid rgba(250, 250, 249, 0.22);
  border-radius: 50%;
  color: var(--lux-on-dark);
  transition: border-color var(--lux-duration) var(--lux-ease),
    background var(--lux-duration) var(--lux-ease),
    color var(--lux-duration) var(--lux-ease);
}

.jerid-social a svg {
  display: block;
  width: 18px;
  height: 18px;
}

.jerid-social a:hover {
  border-color: var(--lux-gold);
  background: var(--lux-gold-soft);
  color: var(--lux-gold);
}

.jerid-contact {
  /* 上下留白拆开写：下方多给一点，避免联系方式贴着版权栏那条分割线 */
  margin: 22px 0 34px;
  text-align: center;
}

.jerid-contact .jerid-contact-row {
  display: inline-block;
  margin: 0 18px;
  color: rgba(250, 250, 249, 0.86);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
}

.jerid-contact label {
  display: inline-block;
  min-width: 72px;
  margin-right: 8px;
  color: var(--lux-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
}

.jerid-contact a:hover {
  color: var(--lux-gold);
}

.jerid-copyright {
  padding: 24px;
  border-top: 1px solid rgba(250, 250, 249, 0.1);
  color: rgba(250, 250, 249, 0.62);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-align: center;
}

/* 页脚 Email 从 mailto 链接改成打开询盘弹窗的按钮。
   视觉必须与相邻的地址/电话链接一致，所以清掉浏览器默认按钮样式后
   直接继承 .jerid-contact-row 的字体与颜色，hover 对齐 .jerid-contact a:hover。 */
.jerid-contact .jerid-contact-email {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color var(--lux-duration) var(--lux-ease);
}

.jerid-contact .jerid-contact-email:hover,
.jerid-contact .jerid-contact-email:focus-visible {
  color: var(--lux-gold);
}

/* ---------- 询盘弹窗（页脚 Email 触发） ---------- */
.jerid-inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.jerid-inquiry-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.jerid-inquiry-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 9, 0.62);
}

.jerid-inquiry-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: auto;
  margin: 0 16px;
  padding: 30px;
  background: var(--lux-surface);
  border-top: 3px solid var(--lux-gold);
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(12, 10, 9, 0.45);
}

/* 标题与导语对齐联系页卡片（.jerid-contact-card h2 / .jerid-contact-intro），
   导语直接复用 .jerid-contact-intro 类，这里只管标题 */
.jerid-inquiry-modal__title {
  margin: 0 0 18px;
  color: var(--lux-ink);
  font-family: var(--jerid-heading);
  font-size: 23px;
  font-weight: 500;
}

/* 表单外层借 .jerid-inquiry 拿字段与按钮样式（inner.css），
   但它自带卡片底色与内边距，弹窗里要去掉（联系页是用行内 style 达到同一效果） */
.jerid-inquiry-modal .jerid-inquiry {
  padding: 0;
  border: 0;
  background: transparent;
}

.jerid-inquiry-modal__close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--lux-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--lux-duration) var(--lux-ease);
}

.jerid-inquiry-modal__close:hover,
.jerid-inquiry-modal__close:focus-visible {
  color: var(--lux-gold);
}

/* 弹窗内的提交反馈条（成功 / 失败）：插在表单上方，默认不占位，
   脚本加 .is-visible 才显示并淡入；文案由模板 data-* 提供。 */
.jerid-inquiry-notice {
  display: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--lux-line);
  border-left: 3px solid var(--lux-gold);
  background: var(--lux-gold-soft);
  color: var(--lux-ink);
  font-size: 14px;
  line-height: 1.5;
}

.jerid-inquiry-notice.is-visible {
  display: block;
  animation: jerid-notice-in var(--lux-duration) var(--lux-ease) both;
}

/* 打勾 / 叹号用 ::before 生成，避免内嵌 <span> 撞上
   .jerid-root span{display:inline-block}（0,1,1）的特异性陷阱 */
.jerid-inquiry-notice.is-success::before {
  content: "\2713";
  margin-right: 6px;
  color: var(--lux-gold);
  font-weight: 700;
}

.jerid-inquiry-notice.is-error {
  border-color: #f3c7c7;
  border-left-color: #b91c1c;
  background: #fef2f2;
  color: #7f1d1d;
}

.jerid-inquiry-notice.is-error::before {
  content: "\0021";
  margin-right: 6px;
  font-weight: 700;
}

@keyframes jerid-notice-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jerid-inquiry-notice.is-visible {
    animation: none;
  }
}

/* 弹窗打开时锁住背景滚动 */
body.jerid-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .jerid-email {
    padding-top: 60px;
  }
  .jerid-email-form input[type="email"] {
    width: 100%;
    margin-bottom: 12px;
  }
  .jerid-email-form button {
    width: 100%;
    max-width: 360px;
    margin-left: 0;
  }
  /* 窄屏页脚整体收一档，避免留白占比过大 */
  .jerid-footer-head {
    padding-top: 36px;
  }
  .jerid-social {
    margin-bottom: 18px;
  }
  .jerid-contact {
    margin: 18px 0 24px;
  }
  .jerid-contact .jerid-contact-row {
    display: block;
    margin: 0 0 8px;
    text-align: left;
  }
  .jerid-contact label {
    text-align: left;
  }
  /* 窄屏弹窗：贴住左右留白，内边距收一档；表单栅格由 .jerid-contact-form-grid
     自己的 900px 断点转单列（site.css），这里不用重复处理 */
  .jerid-inquiry-modal__dialog {
    margin: 0 12px;
    padding: 24px 18px 20px;
    max-height: 86vh;
  }
  .jerid-inquiry-modal__title {
    margin-bottom: 14px;
    font-size: 20px;
  }
}

/* =========================================================
   Floating widgets
   ========================================================= */
.jerid-im {
  position: fixed;
  top: 150px;
  right: 0;
  z-index: 110;
  display: flex;
  align-items: flex-start;
  transform: translateX(calc(100% - 40px));
  transition: transform 0.45s var(--lux-ease);
}

.jerid-im.is-open {
  transform: translateX(0);
}

.jerid-im-label {
  width: 40px;
  height: 68px;
  padding: 0;
  border: 1px solid var(--lux-gold-line);
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: var(--lux-primary);
  color: var(--lux-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--lux-duration) var(--lux-ease),
    color var(--lux-duration) var(--lux-ease);
}

.jerid-im-label:hover {
  background: var(--lux-gold);
  color: var(--lux-primary);
}

.jerid-im-box {
  width: 64px;
  height: 124px;
  padding: 6px;
  border: 1px solid var(--lux-gold-line);
  border-left: 0;
  border-radius: 0 4px 4px 0;
  background: var(--lux-primary);
  box-sizing: border-box;
  flex-shrink: 0;
}

.jerid-im-box ul {
  width: 100%;
  height: 100%;
  background: var(--lux-surface);
}

.jerid-im-box li {
  width: 100%;
  height: 50%;
  overflow: hidden;
  text-align: center;
}

.jerid-im-box a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--lux-primary);
}

.jerid-im-box a:hover {
  color: var(--lux-gold);
}

.jerid-scroll-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 10;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: var(--lux-radius);
  background: var(--lux-gold);
  color: var(--lux-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--lux-duration) var(--lux-ease),
    background var(--lux-duration) var(--lux-ease);
}

.jerid-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.jerid-scroll-top:hover {
  background: var(--lux-gold-bright);
}

@media (max-width: 480px) {
  .jerid-im {
    display: none;
  }
  .jerid-scroll-top {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
  }
}
