:root {
  --bg-tinted: #f4f7f9;
  --bg-navy: #0a192f;
  --surface-1: #fff;
  --border-soft: rgba(10, 25, 47, 0.1);
  --shadow-soft: rgba(60, 40, 20, 0.05);
  --shadow-med: rgba(60, 40, 20, 0.08);
}

* { box-sizing: border-box; }

.dumas-flagship .hero-media,
.refract-flagship .hero-media {
  background-color: var(--navy);
  background-image: none;
  transition: width .6s cubic-bezier(.55, 0, .2, 1);
}

/* Local stock-photo provenance: Mohamed B. and Evie S., Unsplash. */
.dumas-flagship .hero-media::before,
.refract-flagship .hero-media::before {
  content: "";
  position: absolute;
  inset: -4%;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform;
}
.dumas-flagship .hero-media::before {
  background-image: url("../../assets/products_local/dumas_wheat_unsplash.webp");
  background-position: center 58%;
  /* Origin at the base: the ground stays put and only the heads lean over,
     which is how a standing crop actually moves in wind. */
  transform-origin: 50% 100%;
  animation: dumas-wheat-sway 9.5s cubic-bezier(.45,0,.2,1) infinite;
}
.refract-flagship .hero-media::before {
  background-image: url("../../assets/products_local/refractometer_prism_unsplash.webp");
  background-position: center 50%;
  animation: refract-photo-drift 11s cubic-bezier(.4,0,.2,1) infinite alternate;
}
/* Uneven gusts keep the movement legible without turning the field into a
   mechanical pendulum. The crop remains anchored along the lower edge. */
@keyframes dumas-wheat-sway {
  0%   { transform: translate3d(-.45%, .55%, 0) scale(1.09) skewX(-1.35deg); }
  20%  { transform: translate3d(.12%, -.12%, 0) scale(1.09) skewX(.35deg); }
  38%  { transform: translate3d(.62%, -.72%, 0) scale(1.09) skewX(1.65deg); }
  53%  { transform: translate3d(.28%, -.35%, 0) scale(1.09) skewX(.72deg); }
  70%  { transform: translate3d(-.08%, .08%, 0) scale(1.09) skewX(-.22deg); }
  87%  { transform: translate3d(-.68%, .72%, 0) scale(1.09) skewX(-1.72deg); }
  100% { transform: translate3d(-.45%, .55%, 0) scale(1.09) skewX(-1.35deg); }
}
@keyframes refract-photo-drift {
  from { transform: translate3d(-1.8%,0,0) scale(1.07); }
  to { transform: translate3d(1.8%,0,0) scale(1.07); }
}

.dumas-flagship .hero-media::after,
.refract-flagship .hero-media::after {
  z-index: 2;
  background: linear-gradient(180deg, rgba(10,25,47,.28), rgba(10,25,47,.58) 55%, rgba(10,25,47,.84));
}

.hero-science-fx { display: none; }

.register-wrap {
  width: 76%;
  margin-left: 24%;
  padding: 50px 7%;
  background: #fff;
  transition: margin-left .6s cubic-bezier(.55,0,.2,1), width .6s cubic-bezier(.55,0,.2,1);
}
body.split-mode .register-wrap { padding-top: 130px; }

.premium-dark-hero {
  position: relative;
  z-index: 2;
  margin: -130px -7vw 0;
  padding: 130px 7vw 44px;
  overflow: hidden;
  background: var(--navy);
  color: white;
}
body:not(.split-mode) .premium-dark-hero { margin-top: -50px; padding-top: 100px; }
.premium-dark-hero::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -210px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255,255,255,.018), 0 0 0 110px rgba(255,255,255,.012);
  pointer-events: none;
}
.premium-dark-hero > * { position: relative; z-index: 1; }
.premium-dark-hero .breadcrumb-trail,
.premium-dark-hero .breadcrumb-trail a,
.premium-dark-hero .breadcrumb-trail span { color: rgba(255,255,255,.7); }
.premium-dark-hero .breadcrumb-trail a:hover { color: var(--red); }
.product-hero-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 60px; align-items: center; margin: 32px 0 48px; }
.brand-badge-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.premium-dark-hero .brand-badge-logo { width: auto; height: 34px; padding: 6px 10px; object-fit: contain; border-radius: 6px; background: white; box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 0 0 1px rgba(255,255,255,.08); }
.brand-badge-divider { width: 1px; height: 22px; background: rgba(255,255,255,.22); }
.brand-badge-label { color: rgba(255,255,255,.62); font-family: "Outfit",sans-serif; font-size: .7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.premium-dark-hero .product-hero-block { margin: 0; }
.premium-dark-hero .product-hero-block .eyebrow { display: block; margin-bottom: 12px; color: var(--red); font-family: "Outfit",sans-serif; font-size: .85rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.premium-dark-hero .product-hero-block h2 { margin: 0 0 20px; color: white; font-family: "Outfit",sans-serif; font-size: 3rem; font-weight: 900; letter-spacing: -1.6px; line-height: 1.02; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.product-tagline-italic { margin: 0 0 24px; padding-left: 18px; border-left: 3px solid var(--red); color: rgba(255,255,255,.86); font-size: 1.28rem; font-weight: 500; line-height: 1.55; }
.premium-dark-hero .product-subtitle { max-width: 720px; margin: 0 0 30px; color: rgba(255,255,255,.8); font-size: 1.05rem; line-height: 1.72; }
.premium-dark-hero .product-subtitle strong { color: white; }
.product-image-block { position: relative; margin: 0; padding: 30px 0; text-align: center; }
.premium-dark-hero .product-image-block { padding-left: 0; border-left: 0; }
.product-image-block::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(ellipse at center,rgba(255,255,255,.08),transparent 65%),radial-gradient(rgba(255,255,255,.12) 1px,transparent 1px); background-size: 100% 100%,18px 18px; pointer-events: none; }
.product-image-wrapper { position: relative; z-index: 1; display: inline-block; padding: 28px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: white; box-shadow: 0 24px 70px rgba(0,0,0,.24); transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s ease; }
.product-image-wrapper:hover { transform: translateY(-5px) rotate(.25deg); box-shadow: 0 30px 80px rgba(0,0,0,.32); }
.product-image-block img { display: block; width: 100%; max-width: 480px; height: auto; mix-blend-mode: multiply; filter: drop-shadow(0 18px 34px rgba(10,25,47,.12)); }
.premium-dark-hero .product-body { max-width: 1000px; margin-top: 10px; }
.premium-dark-hero .product-body p { margin: 0 0 24px; color: rgba(255,255,255,.8); font-size: 1.05rem; line-height: 1.8; }
.premium-dark-hero .product-body strong { color: white; }

.key-advantages-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 28px 0 36px; }
.advantage-card { padding: 24px 22px; border-top: 3px solid var(--red); border-radius: 0 0 8px 8px; background: var(--bg-tinted); color: var(--navy); transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease; }
.advantage-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.advantage-card-icon { display: block; margin-bottom: 14px; color: var(--red); font-family: "Material Symbols Outlined"; font-size: 36px; line-height: 1; font-variation-settings: "FILL" 0,"wght" 300,"GRAD" 0,"opsz" 24; transition: font-variation-settings .3s ease; }
.advantage-card:hover .advantage-card-icon { font-variation-settings: "FILL" 1,"wght" 300,"GRAD" 0,"opsz" 24; }
.advantage-card-num { display: block; margin-bottom: 8px; color: var(--red); font-family: "Outfit",sans-serif; font-size: .65rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.advantage-card h4 { margin: 0 0 8px; font-family: "Outfit",sans-serif; font-size: 1rem; }
.advantage-card p { margin: 0; color: #64748b; font-size: .78rem; line-height: 1.55; }
.dumas-flagship .dumas-advantages-grid,
.refract-flagship .refract-advantages-grid { margin: 56px 0 72px; }

.section-label { display: block; margin-bottom: 18px; color: var(--red); font-family: "Outfit",sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: 3.2px; text-transform: uppercase; }
.section-heading { max-width: 780px; margin: 0 0 24px; color: var(--navy); font-family: "Outfit",sans-serif; font-size: 2.4rem; font-weight: 800; letter-spacing: -1px; line-height: 1.08; }
.section-intro { max-width: 860px; margin: -8px 0 30px; color: #64748b; font-size: .95rem; line-height: 1.72; }
.content-section { position: relative; margin: 0; padding: 72px 0; }
.bg-band .content-section { padding: 56px 0; }
.content-section--compact, .bg-band .content-section--compact { padding: 40px 0; }
.bg-band { margin-right: -7vw; margin-left: -7vw; padding-right: 7vw; padding-left: 7vw; }
.bg-band--tinted { background: var(--bg-tinted); }
.bg-band--navy { background: var(--bg-navy); color: white; }
.bg-band--navy .section-label { color: rgba(255,255,255,.55); }
.bg-band--navy .section-heading { color: white; }
.bg-band--navy .section-intro,
.bg-band--navy p { color: rgba(255,255,255,.76); }

.param-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 18px; }
.param-cell { padding: 18px 20px; border: 1px solid var(--border-soft); border-radius: 6px; background: var(--surface-1); text-align: center; opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease, box-shadow .3s ease, border-color .3s ease; }
.param-section.animated .param-cell { opacity: 1; transform: translateY(0); }
.param-section.animated .param-cell:nth-child(1) { transition-delay: .05s; }
.param-section.animated .param-cell:nth-child(2) { transition-delay: .12s; }
.param-section.animated .param-cell:nth-child(3) { transition-delay: .19s; }
.param-section.animated .param-cell:nth-child(4) { transition-delay: .26s; }
.param-section.animated .param-cell:nth-child(5) { transition-delay: .33s; }
.param-section.animated .param-cell:nth-child(6) { transition-delay: .40s; }
.param-cell:hover { border-color: rgba(211,47,47,.25); box-shadow: 0 4px 12px rgba(60,40,20,.08); }
.param-cell-abbr { margin-bottom: 4px; color: var(--navy); font-family: "Outfit",sans-serif; font-size: 1.1rem; font-weight: 800; letter-spacing: -.3px; }
.param-cell-name { color: #64748b; font-size: .72rem; line-height: 1.4; }

.measurement-steps { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 26px; border-top: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); }
.measurement-step { padding: 22px 20px 22px 0; }
.measurement-step + .measurement-step { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.15); }
.measurement-step-num { display: block; margin-bottom: 8px; color: var(--red); font-family: "Outfit",sans-serif; font-size: .65rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.measurement-step h4 { margin: 0 0 7px; color: white; font-family: "Outfit",sans-serif; font-size: .92rem; font-weight: 700; }
.measurement-step p { margin: 0; color: rgba(255,255,255,.68); font-size: .78rem; line-height: 1.55; }

.applications-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.bg-band .content-section.applications-section { margin: 0; border-top: 0; }
.app-card { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border: 1px solid var(--border-soft); border-radius: 6px; background: var(--surface-1); opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease, box-shadow .3s ease, border-color .3s ease; }
.applications-section.animated .app-card { opacity: 1; transform: translateY(0); }
.applications-section.animated .app-card:nth-child(1) { transition-delay: .05s; }
.applications-section.animated .app-card:nth-child(2) { transition-delay: .15s; }
.applications-section.animated .app-card:nth-child(3) { transition-delay: .25s; }
.applications-section.animated .app-card:nth-child(4) { transition-delay: .35s; }
.app-card:hover { border-color: rgba(211,47,47,.25); box-shadow: 0 4px 8px rgba(60,40,20,.05), 0 10px 24px rgba(60,40,20,.08); transform: translateY(-3px); }
.app-card-icon { display: flex; flex: 0 0 36px; align-items: center; justify-content: center; width: 36px; height: 36px; }
.app-card-icon .material-symbols-outlined { color: var(--red); font-size: 28px; font-variation-settings: "FILL" 0,"wght" 300,"GRAD" 0,"opsz" 24; transition: font-variation-settings .3s ease; }
.app-card:hover .material-symbols-outlined { font-variation-settings: "FILL" 1,"wght" 300,"GRAD" 0,"opsz" 24; }
.app-card h4 { margin: 0 0 5px; color: var(--navy); font-family: "Outfit",sans-serif; font-size: .92rem; font-weight: 700; }
.app-card p { margin: 0; color: #64748b; font-size: .82rem; line-height: 1.55; }

.spec-table-wrap { overflow-x: auto; border: 1px solid rgba(10,25,47,.1); border-radius: 6px; background: white; }
.spec-table { width: 100%; min-width: 670px; border-collapse: collapse; }
.spec-table th { padding: 13px 16px; background: var(--navy); color: white; font-family: "Outfit",sans-serif; font-size: .7rem; font-weight: 700; letter-spacing: .8px; text-align: left; text-transform: uppercase; }
.spec-table td { padding: 14px 16px; border-top: 1px solid rgba(10,25,47,.08); color: #475569; font-size: .82rem; line-height: 1.5; transition: background .2s ease; }
.spec-table td:first-child { color: var(--navy); font-family: "Outfit",sans-serif; font-weight: 700; }
.spec-table tbody tr:hover td { background: rgba(211,47,47,.04); }

.unified-resources { font-family: Inter,system-ui,sans-serif; }
.resource-list { display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(10,25,47,.1); border-radius: 10px; }
.unified-downloads-grid { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 18px; padding: 18px 22px; border-top: 1px solid rgba(11,30,51,.08); background: white; transition: background .2s ease; }
.unified-downloads-grid:first-child { border-top: 0; }
.unified-downloads-grid:hover { background: rgba(11,30,51,.025); }
.resource-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 8px; background: rgba(211,47,47,.06); color: var(--red); }
.resource-type { color: rgba(10,25,47,.55); font-family: "Outfit",sans-serif; font-size: .7rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.resource-title { margin-top: 4px; color: var(--navy); font-size: 1.05rem; font-weight: 600; }
.unified-downloads-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 18px; border-radius: 6px; background: var(--navy); color: white; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; transition: background .2s ease, transform .2s ease; }
.unified-downloads-btn:hover { background: var(--red); transform: translateY(-1px); }
.unified-video-featured { display: grid; grid-template-columns: 1.4fr 1fr; overflow: hidden; border: 1px solid rgba(11,30,51,.1); border-radius: 12px; background: white; }

.product-cta-block { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 0; padding-top: 30px; border-top: 1px solid rgba(0,0,0,.07); }
.btn-tech,.btn-outline { display: inline-block; padding: 14px 30px; font-family: "Outfit",sans-serif; font-size: .82rem; font-weight: 700; letter-spacing: 1px; text-decoration: none; text-transform: uppercase; transition: all .2s ease; }
.btn-tech { border: 1px solid transparent; background: var(--red); color: white; }
.btn-tech:hover { background: #b91c1c; box-shadow: 0 4px 10px rgba(211,47,47,.25); transform: translateY(-1px); }
.btn-outline { padding: 13px 26px; border: 1px solid var(--navy); background: white; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: white; }

.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.faq-item { border: 1px solid var(--border-soft); border-radius: 6px; background: white; box-shadow: 0 4px 10px -3px var(--shadow-med),0 1px 2px var(--shadow-soft); transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, border-color .3s ease; }
.faq-item:hover { border-color: rgba(211,47,47,.15); box-shadow: 0 6px 16px rgba(60,40,20,.08); transform: translateY(-2px); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; color: var(--navy); cursor: pointer; list-style: none; font-family: "Outfit",sans-serif; font-size: .9rem; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex-shrink: 0; margin-left: 12px; color: var(--red); font-size: 1.2rem; font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 18px 14px; color: #64748b; font-size: .88rem; line-height: 1.65; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row span,.tag-row a { padding: 7px 13px; border: 1px solid rgba(255,255,255,.15); border-radius: 4px; background: rgba(255,255,255,.06); color: white; font-family: "Outfit",sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .5px; text-decoration: none; text-transform: uppercase; transition: border-color .18s ease,background .18s ease,transform .18s cubic-bezier(.4,0,.2,1); }
.tag-row a:hover { border-color: rgba(255,255,255,.42); background: rgba(211,47,47,.72); transform: translateY(-2px); }
.inline-related-link { color: white; font-weight: 700; text-decoration-color: rgba(211,47,47,.9); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color .18s ease,text-decoration-color .18s ease; }
.inline-related-link:hover { color: #f4a7a7; text-decoration-color: #f4a7a7; }
/* Hero effect canvas. Paints over the CSS photo once WebGL is ready; if it
   never is, the photo underneath (and its own animation) simply stays. */
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s ease; z-index: 1; }
.hero-fx.is-ready { opacity: 1; }
.hero-media-text { z-index: 3; }

.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.fade-up.visible { opacity: 1; transform: none; }
.loop-card { transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease; }
.loop-card:hover { z-index: 2; box-shadow: 0 10px 30px rgba(0,0,0,.3); transform: translateY(-3px); }
.category-mini-strip::-webkit-scrollbar { display: none; }
.site-footer { position: relative !important; z-index: 200; width: 100% !important; margin-left: 0 !important; }

@media (max-width: 1024px) {
  body.split-mode .hero-media { position: relative; width: 100%; height: 30vh; }
  .register-wrap { width: 100%; margin-left: 0; padding: 40px 6%; }
  .product-hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .page-intro,.hero-media { height: 42vh; }
  .hero-media-text h1 { font-size: 2.4rem; letter-spacing: -1.5px; }
  .register-wrap { padding: 40px 6%; }
  .premium-dark-hero { margin-right: -6vw; margin-left: -6vw; padding-right: 6vw; padding-left: 6vw; }
  .premium-dark-hero .product-hero-block h2 { font-size: 2rem; letter-spacing: -1px; }
  .product-tagline-italic { font-size: 1.05rem; }
  .key-advantages-grid { grid-template-columns: 1fr; }
  .dumas-flagship .dumas-advantages-grid,
  .refract-flagship .refract-advantages-grid { margin: 40px 0 48px; }
  .bg-band { margin-right: -6vw; margin-left: -6vw; padding-right: 6vw; padding-left: 6vw; }
  .applications-grid { grid-template-columns: 1fr; }
  .measurement-steps { grid-template-columns: 1fr 1fr; }
  .measurement-step:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.15); }
  .measurement-step:nth-child(4) { border-top: 1px solid rgba(255,255,255,.15); }
  .param-grid { grid-template-columns: repeat(2,1fr); }
  .section-heading { font-size: 1.65rem; }
  .content-section { padding: 48px 0; }
  .content-section--compact { padding: 24px 0; }
  .unified-video-featured { grid-template-columns: 1fr; }
  .unified-downloads-grid { grid-template-columns: 56px 1fr; }
  .unified-downloads-btn { grid-column: 1/-1; width: 100%; }
  .product-cta-block { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .page-intro,.hero-media { height: 32vh; }
  .hero-media-text h1 { font-size: 1.9rem; letter-spacing: -1px; }
  .register-wrap { padding: 30px 5%; }
  .premium-dark-hero { margin-right: -5vw; margin-left: -5vw; padding-right: 5vw; padding-left: 5vw; }
  .premium-dark-hero .product-hero-block h2 { font-size: 1.7rem; }
  .measurement-steps { grid-template-columns: 1fr; }
  .measurement-step,.measurement-step + .measurement-step { padding: 18px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.15); }
  .measurement-step:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .fade-up,.param-cell,.app-card { opacity: 1; transform: none; }
  .dumas-flagship .hero-media::before,.refract-flagship .hero-media::before { transform: scale(1.06); }
}
