:root {
  --ym-navy: #0c2643;
  --ym-blue: #194d79;
  --ym-ink: #17344e;
  --ym-line: #d8e2ec;
  --ym-gold: #946720;
  --ym-orange: #2d6b96;
  --ym-heading: clamp(2.2rem, 4.05vw, 3.6rem);
}

body > header {
  background: rgb(248 252 255 / 76%) !important;
  border-bottom: 1px solid rgb(216 226 236 / 82%);
  -webkit-backdrop-filter: blur(14px) saturate(125%) !important;
  backdrop-filter: blur(14px) saturate(125%) !important;
}

body > header .header-row {
  min-height: 66px;
}

/* Place the first part of the homepage photo beneath the sticky glass. */
body.home-editorial:has(> main .home-factory-banner) > header {
  margin-bottom: -72px;
}

@media (min-width: 1101px) {
  body.home-editorial main .home-factory-banner__stage {
    min-height: calc(clamp(480px, 38.743vw, 740px) + 72px);
    padding-top: 72px;
  }
}

@media (max-width: 1100px) {
  body.home-editorial main .home-factory-banner__visual img {
    height: calc(clamp(185px, 40vw, 420px) + 72px);
  }
}

@media (max-width: 900px) {
  body.home-editorial:has(> main .home-factory-banner) > header {
    margin-bottom: -60px;
  }

  body.home-editorial main .home-factory-banner__visual img {
    height: calc(clamp(185px, 40vw, 420px) + 60px);
  }
}

body > .notice.ticker,
body.home-editorial > .notice.ticker {
  background: var(--ym-navy) !important;
  border-bottom: 1px solid #244968;
}

body > .notice.ticker :is(.ticker-group, .ticker-toggle, .ticker-sitemap),
body.home-editorial > .notice.ticker :is(.ticker-group, .ticker-toggle, .ticker-sitemap) {
  color: #f4f7fb !important;
}

body > .notice.ticker .ticker-dot {
  color: var(--ym-orange) !important;
}

body > .notice.ticker .ticker-toggle {
  border: 1px solid #62809b;
  border-radius: 4px;
  min-width: 48px;
}

body main :is(.crumb, .reference-crumb, .policy-crumb) {
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.5;
}

body main.compliance-page .page-hero.compliance-banner :is(h1, .lead, .crumb) {
  color: #fff !important;
}

body main.compliance-page .page-hero.compliance-banner :is(.eyebrow, .crumb a) {
  color: #6f9fc2 !important;
}

body main .guide-hero .studio-action:not(.primary) {
  background: #fff !important;
  border: 1px solid var(--ym-blue);
  color: var(--ym-navy) !important;
}

body main :is(.home-factory-banner, .product-center-hero, .mq-hero, .about-wall-hero) h1,
body:has(.custom-manufacturing-hero) main .custom-manufacturing-hero h1 {
  font-size: var(--ym-heading);
  line-height: 1.08;
  letter-spacing: -.038em;
  font-weight: 680;
  text-wrap: balance;
  margin-block: 0 16px;
}

body main :is(.home-factory-banner, .product-center-hero, .custom-manufacturing-hero, .mq-hero, .about-wall-hero) .eyebrow {
  font-size: .76rem;
  letter-spacing: .055em;
  line-height: 1.45;
}

body :is(main, header) a.btn:focus-visible,
body .ticker a:focus-visible,
body .ticker button:focus-visible {
  outline: 2px solid #b97720 !important;
  outline-offset: 3px;
}

body > header .header-row > a.btn,
body main :is(.product-center-hero, .custom-manufacturing-hero, .mq-hero, .about-wall-hero, .home-factory-banner) a.btn {
  min-height: 44px;
  border-radius: 6px;
}

body main :is(.about-wall-hero, .home-factory-banner) .btn:not(.ghost):first-child,
body main .mq-hero-copy a.btn,
body main .custom-manufacturing-hero .studio-action.primary {
  background: var(--ym-orange) !important;
  border-color: var(--ym-orange) !important;
  color: var(--ym-navy) !important;
}

body main :is(.about-wall-hero, .home-factory-banner) .btn:not(.ghost):first-child:hover,
body main .mq-hero-copy a.btn:hover,
body main .custom-manufacturing-hero .studio-action.primary:hover {
  background: #2f80b7 !important;
  border-color: #2f80b7 !important;
}

body.home-editorial main .home-factory-banner .home-capability-bar {
  background: rgb(23 51 79 / 76%);
  -webkit-backdrop-filter: blur(17px) saturate(113%);
  backdrop-filter: blur(17px) saturate(113%);
  border: 1px solid rgb(248 223 167 / 36%);
  border-radius: 6px;
  box-shadow: none;
}

body.home-editorial main .home-factory-banner .home-capability-bar > a,
body.home-editorial main .home-factory-banner .home-capability-bar > a :is(svg, .home-cap-arrow) {
  color: #ffe9b7;
}

body.home-editorial main .home-factory-banner .home-capability-bar > a:hover {
  color: #fff0c9;
  background: rgb(248 223 167 / 10%);
}

body.home-editorial main .home-factory-banner .home-capability-bar > a:focus-visible {
  outline: 2px solid #f8dfa7;
  outline-offset: -2px;
}

body main .product-center-hero {
  --product-banner: url(../legacy-static/assets/images/products-banner-blue-studio.webp);
  background:
    linear-gradient(90deg, #081a34 20%, #081a34fa 28%, #081a3499 43%, transparent 62%),
    var(--product-banner) right center / max(76%, 810px) auto no-repeat,
    #081a34 !important;
  border-color: #244968;
}

body main .product-center-hero h1,
body main .product-center-hero > .crumb {
  color: #fff;
}

body main .product-center-hero > .crumb a {
  color: #6f9fc2;
}

body main .product-center-hero p.product-center-lead {
  color: #e0eaf4;
}

body main .product-center-hero .product-center-art {
  position: static;
  width: 100%;
  min-height: 0;
  background: none;
}

body main .product-center-hero .product-center-art figcaption {
  position: absolute;
  right: 16px;
  bottom: 12px;
  padding: 3px 7px;
  border-radius: 4px;
  color: #fff;
  background: #081c38;
  font-size: 11px;
}


body main .product-center-hero .btn:not(.ghost):first-child {
  background: var(--ym-orange) !important;
  border-color: var(--ym-orange) !important;
  color: var(--ym-navy) !important;
}

body main .product-center-hero .btn:not(.ghost):first-child:hover {
  background: #2f80b7 !important;
  border-color: #2f80b7 !important;
}

body main .product-center-hero .btn.light {
  background: transparent;
  border-color: #a6bbd0;
  color: #fff;
}

body main .product-center-hero .btn.light:hover {
  background: #244968;
  border-color: #c5d5e5;
  color: #fff;
}

@media (max-width: 760px) {
  body main .product-center-hero {
    background:
      linear-gradient(#081a34, transparent) center bottom calc(56.28vw - 20px) / 100% 20px no-repeat,
      var(--product-banner) center bottom / 100% auto no-repeat,
      #081a34 !important;
  }

  body main .product-center-hero .product-center-hero-inner {
    padding-bottom: 0;
  }

  body main .product-center-hero .product-center-art {
    height: 56.28vw;
    max-width: none;
    aspect-ratio: auto;
  }
}


body:has(.custom-manufacturing-hero) main .custom-manufacturing-hero {
  background-color: var(--ym-navy);
  background-image: linear-gradient(90deg, #0c2643 7%, #0c2643f5 29%, #0c264399 50%, transparent 72%),
    url(../legacy-static/assets/images/custom-manufacturing-machine-source.webp);
  min-height: 540px;
}

body main .about-wall-hero {
  background-color: var(--ym-navy);
}

body main .about-wall-hero::before {
  background: linear-gradient(90deg, #0c2643 8%, #0c2643f5 29%, #0c2643b8 45%, transparent 69%);
}

body main :is(.about-wall-hero, .mq-hero) h1,
body main :is(.about-wall-content, .mq-hero-copy) p:not(.eyebrow),
body:has(.custom-manufacturing-hero) main .custom-manufacturing-hero :is(h1, .project-lead) {
  color: #fff;
}

body main :is(.custom-manufacturing-hero, .about-wall-hero, .mq-hero) .eyebrow {
  color: #6f9fc2 !important;
}

body main .about-wall-hero .about-wall-video {
  color: #fff;
}

body main.about-brand-page > .crumb {
  position: static;
  transform: none;
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 15px;
  color: var(--ym-ink);
}

body main.about-brand-page .about-wall-content {
  padding-block: 52px;
}

body main .custom-manufacturing-hero .studio-action:not(.primary) {
  background: transparent !important;
  border-color: #b5c9db !important;
  color: #fff !important;
}

body main :is(.project-jump, .about-jump, .mq-jump) {
  background-color: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-color: var(--ym-line);
}

body main :is(.project-jump, .about-jump, .mq-jump) a:hover {
  color: var(--ym-blue);
  text-decoration-color: var(--ym-gold);
  text-underline-offset: .25em;
}

@media (max-width: 1100px) {
  body main .about-wall-hero::before {
    background: linear-gradient(to bottom, #0c2643 calc(100% - 230px), transparent calc(100% - 230px));
  }
}

@media (max-width: 900px) {
  body > header .header-row {
    min-height: 59px;
  }

  body:has(.custom-manufacturing-hero) main .custom-manufacturing-hero {
    min-height: 0;
    padding: 48px 0 calc(47vw + 24px);
    background-image: linear-gradient(#0c2643, #0c2643),
      url(../legacy-static/assets/images/custom-manufacturing-machine-source.webp);
    background-size: 100% calc(100% - 47vw), 100% auto;
    background-position: center top, center bottom;
  }

  body main.about-brand-page .about-wall-content {
    padding-block: 42px 32px;
  }
}

@media (max-width: 760px) {
  body main :is(.privacy-banner, .terms-banner) {
    position: relative;
    isolation: isolate;
  }

  body main :is(.privacy-banner, .terms-banner)::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, #0c2643f5 0%, #0c2643d9 56%, #0c264361 100%);
  }

  body main :is(.privacy-banner, .terms-banner) :is(h1, .subtext, .crumb) {
    color: #fff !important;
  }

  body main :is(.privacy-banner, .terms-banner) :is(.eyebrow, .crumb a) {
    color: #6f9fc2 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body > .ticker .ticker-track {
    animation: none !important;
    will-change: auto;
  }
}

/* Service ticker: centered dark-gold copy across the site */
body > .notice.ticker :is(.ticker-group, .ticker-toggle, .ticker-sitemap),
body.home-editorial > .notice.ticker :is(.ticker-group, .ticker-toggle, .ticker-sitemap){color:#2d6b96 !important;}
body > .notice.ticker .ticker-group,
body.home-editorial > .notice.ticker .ticker-group{font-size:16px !important;text-align:center;}
body > .notice.ticker .ticker-dot,
body.home-editorial > .notice.ticker .ticker-dot{color:#b08a3e !important;}
@media(max-width:760px){body > .notice.ticker .ticker-group,body.home-editorial > .notice.ticker .ticker-group{font-size:14px !important;}}

/* Center the service copy in the strip */
.notice.ticker .ticker-window{display:flex;justify-content:center;}
.notice.ticker .ticker-track{width:100%;justify-content:center;}
.notice.ticker .ticker-group[aria-hidden="true"]{display:none;}
.notice.ticker .ticker-group{padding-left:0;justify-content:center;}

/* Vertically center ticker copy */
.notice.ticker .ticker-window,.notice.ticker .ticker-track,.notice.ticker .ticker-group{height:100%;align-items:center;}
.notice.ticker .ticker-group{line-height:1.2;}

/* Compact service ticker height and keep copy vertically centered. */
.notice.ticker .ticker-inner{height:40px !important;}
.notice.ticker .ticker-group{line-height:1 !important;}


/* Restore automatic ticker movement. */
.notice.ticker .ticker-track{animation:ym-ticker 50s linear infinite !important;}
.notice.ticker .ticker-group[aria-hidden="true"]{display:flex !important;}


/* Keep the homepage capability bar lightly frosted over the hero image. */
body main .home-factory-banner .home-capability-bar{background:rgba(238,247,252,.62) !important;backdrop-filter:blur(14px) saturate(115%) !important;-webkit-backdrop-filter:blur(14px) saturate(115%) !important;border:1px solid rgba(255,255,255,.72) !important;box-shadow:0 10px 28px rgba(12,48,76,.14) !important;}
body main .home-factory-banner .home-capability-bar>a{color:#173c56 !important;}
body main .home-factory-banner .home-capability-bar>a :is(svg,.home-cap-arrow){color:#2d6b96 !important;}

