:root { --cm-header-height: 82px; }
html { scroll-padding-top: calc(var(--cm-header-height) + 16px); }
body { padding-top: 0; }
header.cm-header, header.cm-header.active {
    position: fixed; inset: 0 0 auto; width: 100%; padding: 0; margin: 0;
    z-index: 1000; color: #ffffff; background: rgba(9, 11, 16, .72);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    font-family: var(--font-2);
    box-shadow: none; transition: background-color 200ms ease, box-shadow 200ms ease;
    --cm-progress: 0; --cm-progress-position: 0%;
}
header.cm-header.is-scrolled { background: rgba(9, 11, 16, .9); box-shadow: 0 4px 18px #00000030; }
.cm-header .cm-header__inner { width: min(100% - 64px, 1440px); margin-inline: auto; }
.cm-header .cm-header__bar { position: relative; border-bottom: 1px solid #ffffff24; padding-bottom: 10px; }
.cm-header .cm-header__row { display: flex; align-items: center; gap: 22px; min-height: 71px; }
.cm-header .cm-header__brand { display: flex; align-items: center; flex-shrink: 0; color: #ffffff; text-decoration: none; }
/* Independent viewports retain the original artwork and symbol size. */
.cm-header .cm-header__brand { gap: 8px; }
.cm-header__brand svg { display: block; flex-shrink: 0; height: auto; overflow: hidden; }
.cm-header__brand .cm-header__symbol { width: 61.66px; }
.cm-header__brand .cm-header__wordmark { width: 200px; transform: translateY(4px); }
/* Retain the combined mark in archived design previews. */
.cm-header__brand img { display: block; width: 210px; height: auto; object-fit: contain; }
.cm-header nav.cm-header__nav { display: block; margin-left: auto; border-left: 1px solid #ffffff24; padding-left: 22px; }
.cm-header__nav ul { display: flex; align-items: center; gap: 19px; list-style: none; margin: 0; padding: 0; }
.cm-header__nav li { margin: 0; padding: 0; }
.cm-header__nav a { position: relative; display: flex; align-items: baseline; gap: 5px; color: #f2f2f2; font-size: 12px; font-weight: 600; text-decoration: none; padding: 18px 0; white-space: nowrap; }
.cm-header__nav a > span { font: 9px/1 monospace; color: #bdb6a8; }
.cm-header__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 9px; height: 2px; background: #bd8412; transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.cm-header__nav a:hover::after, .cm-header__nav a[aria-current]::after { transform: scaleX(1); }
.cm-header__nav a:hover, .cm-header__nav a[aria-current] { color: #efbb50; }
.cm-header .cm-header__mobile-contact { display: none; }
.cm-header .cm-header__readout { align-self: stretch; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid #ffffff24; padding-left: 20px; min-width: 119px; font-family: Consolas, monospace; }
.cm-header__readout > span { font-size: 8px; letter-spacing: 1px; text-transform: uppercase; color: #bdb6a8; }
.cm-header__readout strong { display: flex; align-items: baseline; gap: 5px; font-size: 16px; font-weight: 400; line-height: 1.6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cm-header__readout i { font-style: normal; color: #efbb50; }
.cm-header__readout b { font-weight: inherit; }
.cm-header__readout small { font-size: 11px; color: #efbb50; margin-left: 5px; }
.cm-header .cm-header__cta { display: inline-flex; align-items: center; justify-content: center; gap: 17px; background: #e9a71114; color: #fff; border: 1px solid #c28c36; padding: 12px 19px; font-size: 12px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background 180ms ease, color 180ms ease; }
.cm-header__cta span { color: #e9a711; font-size: 18px; line-height: 1; }
.cm-header .cm-header__cta:hover { background: #e9a711; color: #252422; border-color: #e9a711; }
.cm-header__cta:hover span { color: inherit; }
.cm-header .cm-header__ruler { position: absolute; inset: auto 0 0; height: 10px; overflow: hidden; background-image: repeating-linear-gradient(to right,#bbb3a4 0 1px,transparent 1px 10px),repeating-linear-gradient(to right,#b2a78f 0 1px,transparent 1px 100px); background-size: 100% 5px,100% 10px; background-position: left bottom; background-repeat: no-repeat; }
.cm-header__fill { position: absolute; inset: auto 0 0; height: 3px; background: #e9a711; transform: scaleX(var(--cm-progress)); transform-origin: left; }
.cm-header__marker { position: absolute; bottom: 0; left: clamp(0px, var(--cm-progress-position), calc(100% - 2px)); width: 2px; height: 10px; background: #b57b00; }
.cm-header__toggle { display: none; }
.cm-header a:focus-visible, .cm-header button:focus-visible { outline: 2px solid #efbb50; outline-offset: 4px; }
.cm-header .cm-skip { position: absolute; top: -100px; left: 16px; background: #e9a711; color: #252422; padding: 10px 18px; z-index: 2; }
.cm-header .cm-skip:focus { top: 8px; }
.cm-content-start { scroll-margin-top: var(--cm-header-height); }
/* One banner size for section pages and product details, including breadcrumbs. */
body .inner-banner-sec,
body.single-product .inner-banner-sec,
main#cm-main-content .inner-banner-sec {
    box-sizing: border-box;
    height: 303px;
    padding: calc(var(--cm-header-height) + 20px) 0 20px;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(9, 11, 16, .22), rgba(9, 11, 16, .32)), url('../images/section/comet-factory-banner.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
body .inner-banner-sec .title h1,
body .inner-banner-sec .title h3,
main#cm-main-content .inner-banner-sec .title h1,
main#cm-main-content .inner-banner-sec .title h3 {
    font-size: clamp(28px, 3.8vw, 55px);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    margin: 0;
}
@media (max-width: 767px) {
    body .inner-banner-sec,
    body.single-product .inner-banner-sec,
    main#cm-main-content .inner-banner-sec { height: 255px; padding-bottom: 16px; }
    body .inner-banner-sec .title h1,
    body .inner-banner-sec .title h3,
    main#cm-main-content .inner-banner-sec .title h1,
    main#cm-main-content .inner-banner-sec .title h3 { font-size: clamp(24px, 6vw, 32px); }
    body .inner-banner-sec .breadcrumb { margin-bottom: 10px; row-gap: 4px; }
}
@media (max-width: 1240px) {
    .cm-header .cm-header__readout { display: none; }
    .cm-header .cm-header__row { gap: 20px; }
    .cm-header__nav ul { gap: 17px; }
}
@media (max-width: 1023px) {
    .cm-header .cm-header__inner { width: calc(100% - 40px); }
    .cm-header .cm-header__row { min-height: 71px; gap: 16px; }
    .cm-header .cm-header__cta { margin-left: auto; }
    .cm-header .cm-header__toggle { display: flex; position: relative; width: 44px; height: 44px; flex: 0 0 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 10px; border: 1px solid #ffffff50; background: transparent; border-radius: 2px; }
    .cm-header__toggle span { display: block; width: 21px; height: 2px; background: #ffffff; transition: transform 180ms ease, opacity 180ms ease; }
    .cm-header__toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
    .cm-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .cm-header__toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
    .cm-header nav.cm-header__nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 14px 20px 22px; border: 0; border-bottom: 2px solid #e9a711; background: rgba(9, 11, 16, .96); box-shadow: 0 15px 25px #0005; max-height: calc(100dvh - var(--cm-header-height)); overflow-y: auto; }
    .cm-header.is-menu-open .cm-header__nav { display: block; }
    .cm-header__nav ul { display: block; }
    .cm-header__nav a { padding: 15px 8px; font-size: 15px; border-bottom: 1px solid #ffffff24; gap: 15px; }
    .cm-header__nav a::after { bottom: 0; }
    .cm-header .cm-header__mobile-contact { display: block; }
}
@media (max-width: 540px) {
    .cm-header .cm-header__inner { width: calc(100% - 32px); }
    .cm-header__brand img { width: 180px; height: auto; }
    .cm-header__brand .cm-header__symbol { width: 52.85px; }
    .cm-header__brand .cm-header__wordmark { width: clamp(158px, calc(100vw - 162px), 180px); transform: translateY(3px); }
    .cm-header .cm-header__cta { display: none; }
    .cm-header .cm-header__toggle { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .cm-header *, .cm-header *::after { transition: none !important; } }
