/*

    ____   ___   _      ____      _      ____  _____
   / ___| / _ \ | |    |  _ \    / \    / ___|| ____|
  | |  _ | | | || |    | | | |  / _ \  | |  _ |  _|
  | |_| || |_| || |___ | |_| | / ___ \ | |_| || |___
   \____| \___/ |_____||____/ /_/   \_\ \____||_____|
                            /\
                            \/
  Goldage Jewellery Limited
  Hong Kong fine jewellery, made for trade

  Developer: Prinseyy

*/

/* GoldAge HK — client-preview layout, 30 September 2026.
   Presentation-only overrides; trade workflows remain in the original scripts. */
:root {
  --layout-width: 80rem;
  --layout-gutter: clamp(20px, 5.55vw, 80px);
  --layout-edge: max(var(--layout-gutter), calc((100vw - var(--layout-width)) / 2));
}
body.layout-v18 { background: #fffdf8; line-height: 1.65; }
body.layout-v18 .p5-background { opacity: .22; }
body.layout-v18 :is(h1,h2,h3) { font-weight: 500; }
body.layout-v18 :is(button,a,input,select,textarea) { -webkit-tap-highlight-color: transparent; }
body.layout-v18 :is(input,select,textarea) { min-width: 0; }
body.layout-v18 :is(section[id], h2[id]) { scroll-margin-top: 116px; }

/* A real three-column header instead of absolutely positioned navigation. */
body.layout-v18 .header-shell { min-height: 88px; height: auto; background: rgba(255,253,248,.98); box-shadow: 0 1px 0 rgba(7,63,62,.08); }
body.layout-v18 .site-header { width: 100%; max-width: none; height: 88px; padding: 0 var(--layout-edge); display: grid; grid-template-columns: 212px minmax(0,1fr) auto; align-items: center; gap: 28px; }
body.layout-v18 .brand { grid-column: 1; grid-row: 1; }
body.layout-v18 .brand img { width: 212px; height: 54px; object-fit: contain; }
body.layout-v18 .nav-links { grid-column: 2; grid-row: 1; position: static; inset: auto; transform: none; display: flex; flex-direction: row; justify-content: center; align-items: center; width: auto; min-height: 0; margin: 0; padding: 0; gap: clamp(18px,1.8vw,26px); border: 0; background: transparent; box-shadow: none; }
body.layout-v18 .nav-links > a,
body.layout-v18 .nav-links > button,
body.layout-v18 .nav-about summary { padding: 16px 0; font-size: .75rem; font-weight: 800; letter-spacing: .055em; white-space: nowrap; }
body.layout-v18 .nav-about { align-self: auto; }
body.layout-v18 .nav-about > div { top: 48px; right: 0; border-radius: 4px; }
body.layout-v18 .header-actions { grid-column: 3; grid-row: 1; justify-self: end; gap: 10px; }
body.layout-v18 .header-actions :is(.language-toggle,.buyer-button,.quote-button) { min-height: 42px; border-radius: 3px; font-size: .75rem; }
body.layout-v18 .language-toggle { min-width: 48px; }
body.layout-v18 .menu-button,
body.layout-v18 .mobile-nav-actions { display: none; }
body.layout-v18 .nav-links a::after { display: block; }

/* Keep the supplied full-bleed jewelry image and lower-left headline. */
body.layout-v18 .hero { min-height: clamp(570px,47vw,680px); align-items: flex-end; }
body.layout-v18 .hero-copy { width: min(760px, calc(100% - 2 * var(--layout-edge))); max-width: 760px; min-height: 0; margin: 0 0 66px var(--layout-edge); padding: 0; text-align: left; align-self: flex-end; }
body.layout-v18 .hero::after { background: linear-gradient(90deg,rgba(2,28,28,.88),rgba(3,50,48,.66) 46%,rgba(3,42,41,.05) 86%),linear-gradient(0deg,rgba(1,30,29,.28),transparent 60%); }
body.layout-v18 .hero h1 { max-width: 760px; margin: 24px 0 22px; font-size: clamp(48px,5vw,72px); line-height: 1.06; font-weight: 500; letter-spacing: -.035em; text-wrap: balance; }
body.layout-v18 .hero .eyebrow { font-size: .75rem; line-height: 1.6; letter-spacing: .14em; }
body.layout-v18 .hero-intro { max-width: 515px; font-size: 1rem; line-height: 1.8; }
body.layout-v18 .hero-actions { margin-top: 28px; gap: 14px; }
body.layout-v18 .hero .primary-button { min-height: 52px; padding: 15px 24px; border: 1px solid var(--yellow); border-radius: 3px; color: #073f3e; background: #edc24d; font-size: .75rem; font-weight: 800; letter-spacing: .035em; box-shadow: none; }
body.layout-v18 .hero .primary-button:hover { background: #f6d475; border-color: #f6d475; transform: translateY(-2px); }
body.layout-v18 .hero .material-list { margin-top: 26px; gap: 12px; font-size: .75rem; letter-spacing: .1em; }
body.layout-v18 .hero-main-image figcaption { right: var(--layout-edge); bottom: 22px; padding: 4px 9px; border-radius: 2px; font-size: .75rem; letter-spacing: .07em; }

/* One content grid and a consistent type hierarchy. */
body.layout-v18 .section { max-width: none; width: 100%; padding: 80px var(--layout-edge); }
body.layout-v18 .section-heading { width: 100%; max-width: none; margin: 0 0 32px; }
body.layout-v18 .section-heading h2 { margin: 10px 0 0; font-size: clamp(34px,3.4vw,48px); line-height: 1.12; letter-spacing: -.03em; }
body.layout-v18 .eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .15em; }
body.layout-v18 .split-heading { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 64px; text-align: left; }
body.layout-v18 .split-heading > p { max-width: 430px; margin: 0; font-size: .875rem; line-height: 1.85; }
body.layout-v18 .gallery-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; text-align: left; }
body.layout-v18 .gallery-heading > div:first-child { text-align: left; max-width: none; }
body.layout-v18 .gallery-heading h2 { max-width: none; }
body.layout-v18 .gallery-subtitle { margin-top: 12px !important; font-size: .875rem; }
body.layout-v18 .catalogue-actions { width: auto; flex: 0 0 auto; display: flex; flex-direction: row; align-items: center; gap: 12px; margin: 0; }
body.layout-v18 .access-pill { padding: 0; border: 0; background: transparent; font-size: .75rem; font-weight: 500; line-height: 1.5; text-transform: none; letter-spacing: 0; }
body.layout-v18 .line-sheet-button { min-height: 42px; padding: 10px 15px; border: 1px solid #bed0cb; border-radius: 3px; color: #073f3e; background: #fff; font-size: .75rem; font-weight: 750; }
body.layout-v18 .line-sheet-button:hover { background: #eef5f2; }

/* Align search and every filter; move the metal note onto its own row. */
body.layout-v18 .catalogue-toolbar { width: 100%; max-width: none; display: grid; grid-template-columns: minmax(220px,.85fr) minmax(0,1.8fr); align-items: start; gap: 16px 20px; margin: 0; padding: 24px; border: 1px solid #dbe5df; border-radius: 5px; background: #f2f6f3; box-shadow: none; }
body.layout-v18 .search-box { width: 100%; height: 48px; min-height: 48px; align-self: start; margin-top: 25px; border-color: #d5dfd9; border-radius: 3px; padding: 0 14px; background: #fff; }
body.layout-v18 .search-box input { font-size: .8125rem; }
body.layout-v18 .filter-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; width: 100%; min-width: 0; }
body.layout-v18 .filter-groups > label { min-width: 0; gap: 8px; font-size: .75rem; line-height: 1.0625rem; letter-spacing: .075em; }
body.layout-v18 .filter-groups select { width: 100%; height: 48px; min-height: 48px; padding: 0 11px; border-color: #d5dfd9; border-radius: 3px; font-size: .8125rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
body.layout-v18 .catalogue-metal-note { grid-column: 1/-1; margin: 0; color: #627772; font-size: .75rem; line-height: 1.6; }
body.layout-v18 .buyer-flow { width: 100%; max-width: none; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin: 20px 0 30px; padding: 0; border: 1px solid #e0e7e0; background: #fffefa; }
body.layout-v18 .buyer-flow li { min-height: 0; display: flex; align-items: flex-start; gap: 12px; padding: 17px 18px; border: 0; border-right: 1px solid #e0e7e0; background: transparent; }
body.layout-v18 .buyer-flow li:last-child { border-right: 0; }
body.layout-v18 .buyer-flow li > span { font-size: .75rem; font-weight: 700; color: #a87a25; }
body.layout-v18 .buyer-flow strong { font-size: .75rem; line-height: 1.5; }
body.layout-v18 .buyer-flow small { display: block; margin-top: 4px; font-size: .75rem; line-height: 1.6; }
body.layout-v18 .gallery-count { width: 100%; max-width: none; margin: 0 0 20px; padding: 0; gap: 16px; }
body.layout-v18 .gallery-count h3 { margin: 0; font-family: var(--body); font-size: .9375rem; font-weight: 650; letter-spacing: 0; }
body.layout-v18 .gallery-count > span { flex-shrink: 0; font-size: .75rem; }
body.layout-v18 .category-jump { width: 100%; max-width: none; gap: 8px; margin: 0 0 12px; padding: 2px; }
body.layout-v18 .category-jump a { min-width: 0; padding: 9px 17px; font-size: .75rem; font-weight: 750; letter-spacing: .06em; background: #fff; border-color: #d4dfd7; }
body.layout-v18 .category-jump a:hover { background: var(--turquoise-deep); border-color: var(--turquoise-deep); }
body.layout-v18 .category-swipe-note { width: 100%; max-width: none; margin: 0 0 24px; padding: 0; font-size: .75rem; }

/* Two category panels per row: retain the existing category rails and filters
   without leaving most of the desktop page empty. */
body.layout-v18 .catalogue-stage { width: 100%; max-width: none; }
body.layout-v18 .product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; }
body.layout-v18 .product-grid.category-rails-view { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 36px; row-gap: 26px; max-width: none; }
body.layout-v18 .category-rail-section { min-width: 0; padding: 22px 0 4px; border-top: 1px solid #dce5dd; }
body.layout-v18 .rail-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0; margin: 0 0 18px; }
body.layout-v18 .rail-header h2 { margin: 0; font-size: 1.75rem; line-height: 1.15; letter-spacing: -.02em; }
body.layout-v18 .more-link { font-size: .75rem; letter-spacing: .08em; }
body.layout-v18 .category-rail { display: flex; align-items: stretch; gap: 16px; padding: 2px 0 14px; scroll-padding-inline: 0; scrollbar-width: thin; scrollbar-color: #c3d0c7 transparent; }
body.layout-v18 .product-card { width: auto; min-width: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 1px solid #dce5dd; border-radius: 4px; background: #fff; box-shadow: none; text-align: left; transition: border-color .2s,box-shadow .2s,transform .2s; }
body.layout-v18 .category-rail .product-card { width: calc((100% - 16px)/2); flex: 0 0 calc((100% - 16px)/2); }
body.layout-v18 .product-card:hover { border-color: #91aaa0; box-shadow: 0 10px 24px rgba(7,63,62,.07); transform: translateY(-2px); }
body.layout-v18 .product-image { position: relative; display: block; flex-shrink: 0; width: 100%; aspect-ratio: 4/3; height: auto; padding: 16px; background: #f0f5f2; }
body.layout-v18 .product-image img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; filter: none; }
body.layout-v18 .product-number { top: 12px; left: 12px; font-size: .75rem; }
body.layout-v18 .view-cue { right: 10px; bottom: 9px; padding: 3px 6px; font-size: .75rem; background: rgba(255,255,255,.9); }
body.layout-v18 .product-info { width: 100%; display: flex; flex: 1; flex-direction: column; padding: 17px 18px 18px; }
body.layout-v18 .product-info > span:first-child { font-size: .75rem; line-height: 1.55; letter-spacing: .09em; }
body.layout-v18 .product-info h3 { min-height: 2.35em; margin: 9px 0 12px; font-size: 1.4375rem; font-weight: 500; line-height: 1.13; text-wrap: balance; }
body.layout-v18 .product-info .product-origin { display: block; align-self: flex-start; min-height: 0; margin: 0 0 8px; padding: 4px 7px; border-radius: 2px; font-size: .75rem; line-height: 1.6; }
body.layout-v18 .product-info .product-render-label { margin: 0 0 12px; font-size: .75rem; font-weight: 600; line-height: 1.45; letter-spacing: .06em; }
body.layout-v18 .product-info dl { display: block; margin-top: auto; }
body.layout-v18 .product-info dl > div { display: flex; align-items: baseline; gap: 8px; }
body.layout-v18 .product-info dt { font-size: .75rem; }
body.layout-v18 .product-info dd { font-size: .75rem; }
body.layout-v18 .product-info .product-preview-note { margin-top: 11px; padding-top: 10px; border-top: 1px solid #eaf0e9; font-size: .75rem; line-height: 1.5; font-weight: 500; letter-spacing: 0; }

/* Supporting sections have the same gutters and less dead space. */
body.layout-v18 .services-section { padding-top: 56px; padding-bottom: 70px; }
body.layout-v18 .services-section .section-heading { max-width: none; margin-bottom: 32px; }
body.layout-v18 .service-grid { width: 100%; max-width: none; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
body.layout-v18 .service-grid article { min-height: 280px; padding: 30px; border: 1px solid #dce5dd; border-top: 2px solid #dcb448; border-radius: 4px; background: #f4f7f2; box-shadow: none; }
body.layout-v18 .service-grid h3 { margin: 24px 0 13px; font-size: 1.9375rem; line-height: 1.14; }
body.layout-v18 .service-grid p { max-width: 480px; font-size: .875rem; line-height: 1.8; }
body.layout-v18 .service-grid a { margin-top: auto; padding-top: 22px; font-size: .75rem; }
body.layout-v18 .service-grid article::after { opacity: .22; }
body.layout-v18 .metrics { width: calc(100% - 2 * var(--layout-edge)); max-width: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0 var(--layout-edge); padding: 0; border: 1px solid #e0e7df; }
body.layout-v18 .metrics article { min-height: 135px; padding: 24px 28px; background: #fff; }
body.layout-v18 .metrics strong { font-size: 2.5rem; line-height: 1.1; }
body.layout-v18 .metrics span { font-size: .75rem; letter-spacing: .06em; }
body.layout-v18 .metrics article::before { font-size: .75rem; }
body.layout-v18 .buyer-faq-section { margin-top: 64px; margin-bottom: 64px; padding-top: 54px; padding-bottom: 54px; background: #f2f6f1; }
body.layout-v18 .buyer-faq-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 20px; }
body.layout-v18 .buyer-faq-grid details { border-radius: 3px; }
body.layout-v18 .buyer-faq-grid summary { padding: 18px 20px; font-size: .75rem; line-height: 1.6; }
body.layout-v18 .buyer-faq-grid p { padding: 0 20px 18px; font-size: .8125rem; }
body.layout-v18 #footer { padding: 0 var(--layout-edge); }
body.layout-v18 #footer .footer-cta { grid-template-columns: minmax(0,1.3fr) minmax(230px,.7fr); gap: 50px; padding: 60px 0 45px; }
body.layout-v18 #footer .footer-cta h2 { max-width: 680px; font-size: clamp(34px,3.4vw,48px); line-height: 1.13; letter-spacing: -.025em; }
body.layout-v18 #footer .footer-cta p:not(.eyebrow) { max-width: 620px; margin-top: 18px; font-size: .8125rem; line-height: 1.85; }
body.layout-v18 #footer .footer-cta-actions { align-self: center; }
body.layout-v18 #footer .footer-quick-links { padding: 24px 0; }
body.layout-v18 #footer > .footer-main { grid-template-columns: minmax(240px,1.4fr) .7fr .7fr 1fr; gap: 40px; padding: 40px 0; }
body.layout-v18 #footer .footer-brand img { width: 215px; height: auto; }
body.layout-v18 #footer .footer-brand p,
body.layout-v18 #footer .footer-column p { font-size: .75rem; line-height: 1.85; }
body.layout-v18 #footer .footer-column :is(a,button) { font-size: .75rem; }
body.layout-v18 #footer .footer-bottom { padding: 20px 0; font-size: .75rem; }

/* Match the existing secondary pages; do not change their form workflows. */
body.layout-v18 :is(.manufacturing-page-hero,.about-hero) { min-height: 600px; }
body.layout-v18 :is(.manufacturing-page-hero-copy,.about-hero-copy) { margin: 0 var(--layout-edge) 64px; max-width: 760px; }
body.layout-v18 :is(.manufacturing-page-hero,.about-hero) h1 { max-width: 760px; font-size: clamp(42px,5vw,70px); line-height: 1.06; font-weight: 500; letter-spacing: -.035em; }
body.layout-v18 .manufacturing-page-hero-copy > p:not(.eyebrow),
body.layout-v18 .about-hero-copy > p:not(.eyebrow) { max-width: 610px; font-size: .9375rem; line-height: 1.8; }
body.layout-v18 .manufacturer-procedure li { min-height: 250px; padding: 26px; }
body.layout-v18 .manufacturing-estimator { padding: 70px var(--layout-edge); gap: 60px; }
body.layout-v18 .estimator-copy h2 { font-size: clamp(36px,4vw,50px); line-height: 1.1; }
body.layout-v18 .registration-topbar { min-height: 88px; padding-inline: var(--layout-edge); }
body.layout-v18 .registration-main { max-width: 77.5rem; margin: 0 auto; padding: 60px 30px 80px; }
body.layout-v18 .registration-intro { gap: 60px; margin-bottom: 40px; }
body.layout-v18 .registration-intro h1 { max-width: 670px; font-size: clamp(38px,4.3vw,56px); line-height: 1.08; }
body.layout-v18 .registration-intro > p { font-size: .875rem; line-height: 1.85; }
body.layout-v18 .registration-standalone { padding: 36px; border-radius: 5px; box-shadow: 0 16px 50px rgba(7,63,62,.04); }
body.layout-v18 .registration-heading h2 { font-size: 2.125rem; }
body.layout-v18 .registration-heading p { font-size: .8125rem; }
body.layout-v18 .registration-control :is(input,select) { border-radius: 3px; }
body.layout-v18 .registration-group legend { font-size: .9375rem; }
body.layout-v18 .registration-row { grid-template-columns: 190px minmax(0,1fr); }
body.layout-v18 .registration-row > label,
body.layout-v18 .registration-row > .row-label { font-size: .75rem; }
body.layout-v18 .registration-footer { padding-inline: var(--layout-edge); }
body.layout-v18 .modal { max-height: calc(100dvh - 32px); border-radius: 6px; }
body.layout-v18 .modal h2 { line-height: 1.12; }

@media (max-width: 1250px) {
  body.layout-v18 .site-header { grid-template-columns: 1fr auto; }
  body.layout-v18 .header-actions { grid-column: 2; }
  body.layout-v18 .menu-button { display: grid; place-items: center; width: 42px; height: 42px; min-height: 42px; border-radius: 3px; background: #edc24d; }
  body.layout-v18 .nav-links { display: none; position: absolute; top: 88px; left: auto; right: var(--layout-edge); width: min(380px,calc(100vw - 40px)); max-height: calc(100dvh - 110px); overflow-y: auto; padding: 18px 24px; border: 1px solid #dbe4dc; border-radius: 4px; background: #fffdf8; box-shadow: 0 18px 40px rgba(7,63,62,.14); }
  body.layout-v18 .nav-links.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  body.layout-v18 .nav-links > a,
  body.layout-v18 .nav-links > button,
  body.layout-v18 .nav-about summary { padding: 14px 0; font-size: .75rem; text-align: left; }
  body.layout-v18 .nav-links a::after { display: none; }
  body.layout-v18 .nav-about { display: block; }
  body.layout-v18 .nav-about > div { position: static; width: 100%; box-shadow: none; padding: 0 0 8px; border: 0; background: transparent; }
  body.layout-v18 .hero-copy { max-width: 660px; }
  body.layout-v18 .gallery-heading { align-items: flex-start; }
  body.layout-v18 .catalogue-actions { flex-direction: column; align-items: flex-end; gap: 8px; }
  body.layout-v18 #footer > .footer-main { gap: 24px; grid-template-columns: 1.3fr .7fr .7fr 1fr; }
}
@media (max-width: 960px) {
  body.layout-v18 .hero-copy { max-width: 620px; }
  body.layout-v18 .hero h1 { max-width: 620px; font-size: 3.5rem; }
  body.layout-v18 .catalogue-toolbar { grid-template-columns: 1fr; }
  body.layout-v18 .search-box { margin-top: 0; }
  body.layout-v18 .buyer-flow { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.layout-v18 .buyer-flow li:nth-child(2) { border-right: 0; }
  body.layout-v18 .buyer-flow li:nth-child(-n+2) { border-bottom: 1px solid #e0e7e0; }
  body.layout-v18 .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.layout-v18 .product-grid.category-rails-view { column-gap: 24px; }
  body.layout-v18 .category-rail .product-card { width: 245px; flex-basis: 245px; }
  body.layout-v18 .split-heading { gap: 30px; }
  body.layout-v18 #footer > .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; }
  body.layout-v18 .manufacturing-estimator { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 680px) {
  :root { --layout-gutter: 20px; }
  body.layout-v18 .header-shell,
  body.layout-v18 .site-header { min-height: 72px; height: 72px; }
  body.layout-v18 .site-header { gap: 12px; padding-inline: 18px; }
  body.layout-v18 .brand img { width: 164px; height: 46px; }
  body.layout-v18 .header-actions { gap: 7px; }
  body.layout-v18 .header-actions .buyer-button { display: none; }
  body.layout-v18 .header-actions .quote-button { min-width: 0; padding: 8px; font-size: 12px; }
  body.layout-v18 .quote-button small { display: none; }
  body.layout-v18 .nav-links { top: 72px; right: 16px; width: calc(100vw - 32px); max-height: calc(100dvh - 94px); }
  body.layout-v18 .mobile-nav-actions { display: flex; gap: 20px; padding-top: 10px; }
  body.layout-v18 .mobile-nav-actions .mobile-language { display: none; }
  body.layout-v18 .hero { min-height: 620px; }
  body.layout-v18 .hero-copy { width: calc(100% - 40px); max-width: none; margin: 0 20px 46px; }
  body.layout-v18 .hero::after { background: linear-gradient(0deg,rgba(2,28,28,.96),rgba(3,50,48,.77) 58%,rgba(3,42,41,.14)); }
  body.layout-v18 .hero-main-image img { object-position: 62% center; }
  body.layout-v18 .hero h1 { max-width: 530px; margin: 20px 0; font-size: clamp(38px,11.3vw,54px); line-height: 1.09; letter-spacing: -.035em; text-wrap: balance; }
  body.layout-v18 .hero .eyebrow { max-width: 320px; font-size: 12px; line-height: 1.8; letter-spacing: .11em; }
  body.layout-v18 .hero-intro { max-width: 440px; font-size: 14px; line-height: 1.8; }
  body.layout-v18 .hero-actions { margin-top: 25px; }
  body.layout-v18 .hero .primary-button { font-size: 12px; }
  body.layout-v18 .hero .material-list { gap: 10px; flex-wrap: wrap; font-size: 12px; letter-spacing: .055em; }
  body.layout-v18 .hero-main-image figcaption { display: none; }
  body.layout-v18 .section { padding: 52px 20px; }
  body.layout-v18 .section-heading h2 { font-size: 36px; }
  body.layout-v18 .gallery-heading { display: block; }
  body.layout-v18 .catalogue-actions { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
  body.layout-v18 .access-pill { max-width: 156px; font-size: 12px; }
  body.layout-v18 .line-sheet-button { font-size: 12px; padding-inline: 12px; white-space: nowrap; }
  body.layout-v18 .catalogue-toolbar { padding: 16px; gap: 16px; }
  body.layout-v18 .filter-groups { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  body.layout-v18 .filter-groups label:last-child { grid-column: 1/-1; }
  body.layout-v18 .catalogue-metal-note { font-size: 12px; }
  body.layout-v18 .buyer-flow li { gap: 8px; padding: 14px 12px; }
  body.layout-v18 .buyer-flow strong { font-size: 12px; }
  body.layout-v18 .buyer-flow small { font-size: 12px; }
  body.layout-v18 .gallery-count h3 { font-size: 13px; }
  body.layout-v18 .category-jump { width: 100%; margin-right: 0; }
  body.layout-v18 .category-jump a { padding: 9px 13px; }
  body.layout-v18 .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  body.layout-v18 .product-grid.category-rails-view { grid-template-columns: minmax(0,1fr); gap: 24px; }
  body.layout-v18 .category-rail-section { padding-top: 20px; }
  body.layout-v18 .category-rail .product-card { width: min(270px,78vw); flex-basis: min(270px,78vw); }
  body.layout-v18 .product-info { padding: 16px; }
  body.layout-v18 .product-info h3 { font-size: 21px; }
  body.layout-v18 .product-grid:not(.category-rails-view) .product-info { padding: 12px; }
  body.layout-v18 .product-grid:not(.category-rails-view) .product-info h3 { font-size: 19px; min-height: 0; }
  body.layout-v18 .product-grid:not(.category-rails-view) .product-info .product-origin { font-size: 12px; }
  body.layout-v18 .split-heading,
  body.layout-v18 .service-grid { grid-template-columns: 1fr; gap: 22px; }
  body.layout-v18 .service-grid article { min-height: 270px; padding: 26px; }
  body.layout-v18 .service-grid h3 { font-size: 30px; }
  body.layout-v18 .metrics { grid-template-columns: 1fr; }
  body.layout-v18 .metrics article { min-height: 120px; padding: 24px; border-bottom: 1px solid #e0e7df; }
  body.layout-v18 .metrics article:last-child { border-bottom: 0; }
  body.layout-v18 .buyer-faq-section { margin-block: 44px; }
  body.layout-v18 .buyer-faq-grid { grid-template-columns: 1fr; }
  body.layout-v18 .buyer-faq-grid summary { font-size: 12px; }
  body.layout-v18 #footer .footer-cta { grid-template-columns: 1fr; gap: 24px; padding: 44px 0 30px; }
  body.layout-v18 #footer .footer-cta h2 { font-size: 38px; }
  body.layout-v18 #footer .footer-cta-actions { width: 100%; }
  body.layout-v18 #footer .footer-quick-links { grid-template-columns: 1fr 1fr; gap: 18px; }
  body.layout-v18 #footer .footer-quick-links a,
  body.layout-v18 #footer .footer-quick-links button { border: 0; padding: 0; }
  body.layout-v18 #footer > .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  body.layout-v18 #footer .footer-brand,
  body.layout-v18 #footer .footer-contact { grid-column: 1/-1; }
  body.layout-v18 #footer .footer-bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
  body.layout-v18 :is(.manufacturing-page-hero,.about-hero) { min-height: 580px; }
  body.layout-v18 :is(.manufacturing-page-hero-copy,.about-hero-copy) { margin: 0 20px 44px; }
  body.layout-v18 :is(.manufacturing-page-hero,.about-hero) h1 { font-size: 45px; }
  body.layout-v18 .manufacturing-estimator { padding: 50px 20px; }
  body.layout-v18 .manufacturer-procedure li { min-height: 215px; }
  body.layout-v18 .registration-topbar { min-height: 72px; padding-inline: 16px; }
  body.layout-v18 .registration-topbar .brand img { width: 152px; }
  body.layout-v18 .registration-return { padding-inline: 10px; font-size: 12px; }
  body.layout-v18 .registration-main { padding: 42px 16px 50px; }
  body.layout-v18 .registration-intro { grid-template-columns: 1fr; gap: 20px; padding: 0; margin-bottom: 30px; }
  body.layout-v18 .registration-intro h1 { font-size: 40px; }
  body.layout-v18 .registration-standalone { padding: 22px 16px; }
  body.layout-v18 .registration-row { grid-template-columns: minmax(0,1fr); }
  body.layout-v18 .registration-row > label,
  body.layout-v18 .registration-row > .row-label { padding: 10px 12px 4px; border: 0; }
  body.layout-v18 .registration-control { padding: 8px 12px 14px; }
  body.layout-v18 .registration-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  body.layout-v18 .registration-footer nav { flex-wrap: wrap; gap: 16px; }
  body.layout-v18 .modal { width: calc(100% - 24px); margin: auto; }
}
@media (max-width: 360px) {
  body.layout-v18 .site-header { padding-inline: 12px; gap: 8px; }
  body.layout-v18 .brand img { width: 145px; }
  body.layout-v18 .language-toggle { min-width: 40px; }
  body.layout-v18 .header-actions .quote-button { padding: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  body.layout-v18 *, body.layout-v18 *::before, body.layout-v18 *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
/* Final alignment checks across the original media-query stack. */
body.layout-v18 .gallery-heading { flex-direction: row; }
body.layout-v18 .gallery-heading > div:first-child { justify-items: start; }
body.layout-v18 .gallery-heading :is(.eyebrow,h2,.gallery-subtitle) { text-align: left; margin-left: 0; margin-right: 0; }
body.layout-v18 .nav-links > a,
body.layout-v18 .nav-links > button { border-bottom: 0; }
body.layout-v18 .nav-links > a::after,
body.layout-v18 .nav-links > button::after { top: auto; bottom: 6px; }
body.layout-v18 .header-actions .language-toggle { display: inline-flex; align-items: center; justify-content: center; }
body.layout-v18 .filter-groups > label { padding: 0; margin: 0; }
body.layout-v18 .category-rail > .product-card:only-child { flex-basis: 100%; width: 100%; }
body.layout-v18 .category-rail > .product-card:only-child .product-image { aspect-ratio: 2.74; }
@media (max-width: 960px) {
  body.layout-v18 .category-rail > .product-card:only-child { width: 245px; flex-basis: 245px; }
  body.layout-v18 .category-rail > .product-card:only-child .product-image { aspect-ratio: 4/3; }
}
@media (max-width: 680px) {
  body.layout-v18 .category-rail > .product-card:only-child { width: min(270px,78vw); flex-basis: min(270px,78vw); }
}

/* 2026-09-30 hero update: stronger gradient with the image fully behind the homepage copy. */
body.layout-v18.home-page .hero {
  position: relative;
  min-height: clamp(620px, 76vh, 820px);
  background:
    radial-gradient(circle at 78% 18%, rgba(226, 191, 102, .16), transparent 26%),
    linear-gradient(135deg, #031f1f 0%, #064847 48%, #0b6a67 100%);
}
body.layout-v18.home-page .hero::after {
  background:
    linear-gradient(90deg, rgba(1, 22, 22, .82) 0%, rgba(4, 63, 61, .68) 42%, rgba(4, 63, 61, .22) 72%, rgba(4, 63, 61, .08) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .16) 0%, rgba(0, 0, 0, .36) 100%);
}
body.layout-v18.home-page .hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
body.layout-v18.home-page .hero-main-image,
body.layout-v18.home-page .hero-main-image picture,
body.layout-v18.home-page .hero-main-image img {
  width: 100%;
  height: 100%;
}
body.layout-v18.home-page .hero-main-image img {
  object-fit: cover;
  object-position: 64% center;
  filter: saturate(.96) contrast(1.02) brightness(.9);
}
body.layout-v18.home-page .hero-copy {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 44px));
  margin: 0 0 clamp(54px, 7vw, 96px) clamp(22px, 8vw, 132px);
  padding: clamp(28px, 3.2vw, 42px);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(2, 28, 28, .62), rgba(7, 86, 84, .26));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 24px 70px rgba(3, 35, 34, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.layout-v18.home-page .hero-copy .eyebrow {
  color: #f3d97a;
}
body.layout-v18.home-page .hero h1 {
  max-width: 640px;
  margin: 18px 0 16px;
  color: #fff;
}
body.layout-v18.home-page .hero-intro {
  max-width: 560px;
  color: rgba(255,255,255,.86);
}
body.layout-v18.home-page .hero-actions {
  margin-top: 28px;
}
body.layout-v18.home-page .hero .material-list {
  margin-top: 22px;
  color: rgba(255,255,255,.8);
}
body.layout-v18.home-page .hero-main-image figcaption {
  right: 24px;
  bottom: 20px;
  left: auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(255,255,255,.88);
  background: rgba(3, 39, 38, .4);
}
@media (max-width: 900px) {
  body.layout-v18.home-page .hero {
    min-height: 640px;
  }
  body.layout-v18.home-page .hero::after {
    background:
      linear-gradient(180deg, rgba(1, 22, 22, .28) 0%, rgba(2, 28, 28, .76) 62%, rgba(2, 28, 28, .92) 100%),
      linear-gradient(135deg, rgba(4, 63, 61, .18), rgba(4, 63, 61, .04));
  }
  body.layout-v18.home-page .hero-main-image img {
    object-position: center 42%;
  }
  body.layout-v18.home-page .hero-copy {
    width: calc(100% - 36px);
    margin: 0 18px 42px;
    padding: 24px 22px;
    border-radius: 20px;
  }
}

/* =====================================================================
   LAYOUT POLISH v19 — spacing rhythm, type hierarchy, mobile, print
   ===================================================================== */
body.layout-v18 { --ga-measure: 68ch; }
body.layout-v18 h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.4rem); line-height: 1.04; letter-spacing: -.012em; font-weight: 600; }
body.layout-v18 .section-heading h2,
body.layout-v18 .footer-cta h2 { font-size: var(--ga-fs-h2); line-height: 1.08; letter-spacing: -.01em; font-weight: 600; }
body.layout-v18 h3 { line-height: 1.18; }
body.layout-v18 .eyebrow { font-size: var(--ga-fs-label); letter-spacing: .18em; }
body.layout-v18 .section-heading p:not(.eyebrow),
body.layout-v18 .split-heading > p { max-width: var(--ga-measure); color: var(--ga-muted); font-size: 1rem; line-height: 1.75; }
body.layout-v18 .section { padding-block: var(--section-space); }
body.layout-v18 .primary-button,
body.layout-v18 .secondary-button { border-radius: var(--ga-radius); letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; min-height: 48px; }
body.layout-v18 .primary-button { background: var(--ga-teal-900); color: var(--ga-ivory); }
body.layout-v18 .primary-button:hover { background: var(--ga-gold-400); color: var(--ga-teal-900); }
body.layout-v18 .hero .primary-button { background: var(--ga-gold-400); color: var(--ga-teal-900); }
body.layout-v18 .service-grid article,
body.layout-v18 .buyer-faq-grid details { border-radius: var(--ga-radius); border-color: var(--ga-hairline); }
body.layout-v18 .manufacturing-estimator { align-items: start; background: var(--ga-paper); border-block: 1px solid var(--ga-hairline); }
body.layout-v18 .manufacturing-estimator .estimator-copy h2 { font-size: var(--ga-fs-h2); letter-spacing: -.01em; }
body.layout-v18 .job-cards-section { background: var(--ga-ivory); }
body.layout-v18 .estimator-grid label { color: var(--ga-teal-900); font-weight: 700; font-size: .78rem; }
body.layout-v18 .estimator-grid input, body.layout-v18 .estimator-grid select { min-height: 48px; border-radius: var(--ga-radius); font-size: 1rem; }
body.layout-v18 .manufacturer-procedure ol li { border-radius: var(--ga-radius); }
body.layout-v18 .manufacturing-reference-grid figure { margin: 0; }
body.layout-v18 .manufacturing-reference-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
body.layout-v18 input, body.layout-v18 select, body.layout-v18 textarea { font-size: max(16px, 1rem); }   /* no iOS zoom on focus */

@media (max-width: 960px) {
  body.layout-v18 .section { padding-block: clamp(48px, 9vw, 72px); }
  body.layout-v18 .calc-headline { grid-template-columns: 1fr; }
  body.layout-v18 .calc-headline > div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
}
@media (max-width: 680px) {
  body.layout-v18 .section-heading, body.layout-v18 .split-heading { display: grid; grid-template-columns: 1fr; gap: 14px; }
  body.layout-v18 .calc-toolbar { align-items: flex-start; }
  body.layout-v18 .currency-stack { justify-items: start; }
  body.layout-v18 .calculator-panel .estimator-grid { grid-template-columns: 1fr; }
  body.layout-v18 .jc-specs dd { font-size: 1.25rem; }
  body.layout-v18 .primary-button, body.layout-v18 .secondary-button { width: 100%; }
  body.layout-v18 .bulk-export .primary-button, body.layout-v18 .bulk-export .secondary-button { width: auto; }
}
@media (prefers-reduced-motion: reduce) { .skip-link, .currency-toggle button { transition: none; } }

/* =====================================================================
   HERO POLISH — floating, edge-faded product photo + frosted glass card
   Home page: two-column grid, vertically centred, 80vh minimum.
   ===================================================================== */
body.layout-v18.home-page .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 0;
  min-height: max(560px, 80vh);
  min-height: max(560px, 80svh);
  padding: clamp(40px, 5vw, 80px) var(--layout-edge);
  overflow: hidden;
  background: #062f2e;
}
body.layout-v18.home-page .hero::before,
body.layout-v18.home-page .hero::after { content: none; display: none; }

/* Photo: no white square. The edges dissolve into the green via linear-gradient masks. */
body.layout-v18.home-page .hero-visual {
  position: relative; inset: auto; grid-column: 1; grid-row: 1;
  width: 100%; min-height: clamp(420px, 44vw, 620px); margin: 0;
  background: transparent; border-radius: 16px; overflow: visible; box-shadow: none;
}
body.layout-v18.home-page .hero-main-image { position: absolute; inset: 0; background: transparent; box-shadow: none; overflow: visible; }
body.layout-v18.home-page .hero-main-image::after { content: none; }
body.layout-v18.home-page .hero-main-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; filter: none;
  /* Linear-gradient fade: dissolves into the card on the right, softly on top/bottom/left */
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.5) 10%, #000 24%, #000 44%, rgba(0,0,0,.5) 68%, transparent 96%),
                      linear-gradient(to bottom, transparent 0, rgba(0,0,0,.5) 12%, #000 28%, #000 72%, rgba(0,0,0,.5) 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.5) 10%, #000 24%, #000 44%, rgba(0,0,0,.5) 68%, transparent 96%),
              linear-gradient(to bottom, transparent 0, rgba(0,0,0,.5) 12%, #000 28%, #000 72%, rgba(0,0,0,.5) 88%, transparent 100%);
  mask-composite: intersect;
}
body.layout-v18.home-page .hero-main-image figcaption { left: 16px; right: auto; bottom: 10px; }

/* Glass card: lower opacity + stronger blur so the ring refracts through the overlap */
body.layout-v18.home-page .hero-copy {
  position: relative; z-index: 2; grid-column: 2; grid-row: 1;
  align-self: center; justify-self: start;
  width: calc(100% + 88px); max-width: 600px; min-height: 0;
  margin: 0 0 0 -88px; padding: clamp(28px, 3.4vw, 52px);
  box-sizing: border-box; text-align: left; color: #fff;
  background: rgba(15, 25, 20, .6);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
  overflow: visible;
}
body.layout-v18.home-page .hero-copy,
body.layout-v18.home-page .hero-copy :is(h1, p) { word-break: normal; overflow-wrap: normal; hyphens: none; }
body.layout-v18.home-page .hero-copy :is(h1, .hero-intro) { text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
body.layout-v18.home-page .hero .eyebrow { max-width: none; }
body.layout-v18.home-page .hero h1 { max-width: none; margin: 18px 0 16px; font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1.08; text-wrap: balance; }
body.layout-v18.home-page .hero-intro { max-width: none; }

body.layout-v18.home-page .hero-actions { gap: 12px; margin-top: 26px; }
body.layout-v18.home-page .hero .secondary-hero-button {
  min-height: 52px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 22px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 3px;
  color: #fff; background: transparent; font-family: inherit; font-size: .75rem; font-weight: 800; line-height: 1;
  letter-spacing: .11em; text-transform: uppercase; white-space: nowrap; cursor: pointer;
  transition: border-color .25s ease, background-color .25s ease, color .25s ease, transform .25s ease;
}
body.layout-v18.home-page .hero .secondary-hero-button:hover,
body.layout-v18.home-page .hero .secondary-hero-button:focus-visible {
  border-color: #edc24d; color: #edc24d; background: rgba(237, 194, 77, .08); transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  body.layout-v18.home-page .hero .secondary-hero-button { transition: none; }
}
/* Fallback when backdrop-filter is unsupported: keep the card legible */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.layout-v18.home-page .hero-copy { background: rgba(15, 25, 20, .88); }
}

@media (max-width: 900px) {
  body.layout-v18.home-page .hero { grid-template-columns: minmax(0, 1fr); gap: 16px; min-height: 0; padding-block: 24px 40px; }
  body.layout-v18.home-page .hero-visual { grid-column: 1; grid-row: 1; min-height: 0; aspect-ratio: 4 / 3; }
  body.layout-v18.home-page .hero-copy { grid-column: 1; grid-row: 2; width: 100%; max-width: none; margin: 0; }
  body.layout-v18.home-page .hero-actions { flex-direction: column; align-items: stretch; }
  body.layout-v18.home-page .hero-actions > * { width: 100%; }
}

/* Manufacturing hero: same vertical centring, 80vh floor, glass copy panel */
body.layout-v18 .manufacturing-page-hero { min-height: max(560px, 80vh); min-height: max(560px, 80svh); display: flex; align-items: center; }
body.layout-v18 .manufacturing-page-hero-copy {
  margin: 0 0 0 var(--layout-edge); padding: clamp(24px, 3vw, 44px); max-width: 640px;
  background: rgba(15, 25, 20, .6); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px;
}
@media (max-width: 900px) {
  body.layout-v18 .manufacturing-page-hero { min-height: 0; padding: 40px 0; }
  body.layout-v18 .manufacturing-page-hero-copy { margin: 0 20px; max-width: none; }
}

/* =====================================================================
   PRINT — PDF quotation export and clean page printing
   ===================================================================== */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  html, body { background: #fff !important; color: #000 !important; font-size: 10.5pt; }
  body { overflow: visible !important; }
  body::before, body::after { display: none !important; }

  /* hide chrome */
  .skip-link, .header-shell, .p5-background, .hero, .manufacturing-page-hero, .menu-button, .site-footer, dialog,
  .catalogue-toolbar, .catalogue-actions, .category-jump, .category-swipe-note, .buyer-flow, .pricing-bar, .currency-toggle,
  .bulk-toolbar, .bulk-export, .row-actions, .view-cue, .product-number, .card-alt, .noscript-banner, .catalogue-metal-note,
  .services-section, .metrics, .buyer-faq-section, .manufacturer-procedure, .manufacturing-services, .manufacturing-reference-gallery,
  .manufacturing-request, .job-card-parser, .calc-actions, .matrix-block-head .text-link, .add-row, .empty-state,
  button:not(.product-card), .primary-button, .secondary-button, .text-link { display: none !important; }

  main, .section { padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important; }
  .section-heading, .split-heading { display: block !important; margin: 0 0 6mm !important; }
  h1, h2, h3 { color: #000 !important; page-break-after: avoid; }
  h2 { font-size: 17pt !important; }
  a { color: inherit !important; text-decoration: none !important; }

  /* catalogue: product data first */
  .gallery-section { padding: 0 !important; }
  .gallery-count { display: flex; justify-content: space-between; margin: 4mm 0 !important; }
  body.layout-v18.catalogue-final .product-grid:not(.category-rails-view) { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 4mm !important; }
  body.layout-v18.catalogue-final .product-card { break-inside: avoid; border: 1px solid #999 !important; box-shadow: none !important; transform: none !important; }
  body.layout-v18.catalogue-final .product-image { aspect-ratio: 4 / 3 !important; }
  body.layout-v18.catalogue-final .product-info { padding: 3mm !important; }
  body.layout-v18.catalogue-final .product-info h3 { font-size: 12pt !important; }
  .product-card-description, .product-origin { display: none !important; }
  .product-price strong { color: #000 !important; font-size: 12pt !important; }

  /* tables + data */
  table { width: 100% !important; min-width: 0 !important; border-collapse: collapse !important; page-break-inside: auto; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
  th, td { padding: 2mm 2.5mm !important; border: 1px solid #888 !important; background: #fff !important; color: #000 !important; position: static !important; font-size: 9.5pt !important; }
  thead th { background: #eee !important; }
  .matrix-scroll { overflow: visible !important; }
  .matrix-table { table-layout: auto; }
  .matrix-table th, .matrix-table td { padding: 1.5mm 1mm !important; font-size: 8pt !important; white-space: normal !important; }
  .matrix-table select { min-width: 0 !important; width: auto !important; max-width: 28mm; }
  .matrix-table .qty-cell input { width: 8mm !important; min-width: 0 !important; text-align: center; }
  .matrix-table input::placeholder { color: transparent; }
  .matrix-table .qty-cell { padding: 1mm !important; }
  .matrix-block { break-inside: avoid; border: 0 !important; margin-bottom: 6mm; }
  .matrix-block-head { display: flex !important; gap: 4mm; padding: 0 0 2mm !important; border: 0 !important; }
  .matrix-block-head img { width: 14mm; height: 14mm; }
  .matrix-table select { appearance: none; border: 0 !important; background: none !important; padding: 0 !important; min-height: 0 !important; font-size: 9.5pt !important; }
  .matrix-table input { border: 0 !important; background: none !important; min-height: 0 !important; width: auto !important; font-size: 9.5pt !important; }
  .bulk-summary { position: static !important; display: block !important; background: none !important; color: #000 !important; box-shadow: none !important; padding: 3mm 0 !important; border-top: 2px solid #000; }
  .bulk-summary dt, .bulk-summary dd { color: #000 !important; }
  .bulk-summary dd { font-size: 14pt !important; }
  .job-card-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 4mm !important; }
  .job-card { break-inside: avoid; border: 1px solid #888 !important; }
  .calculator-panel { box-shadow: none !important; border: 1px solid #888 !important; padding: 4mm !important; }
  .calc-headline { background: #fff !important; color: #000 !important; border: 1px solid #000 !important; }
  .calc-headline span, .calc-headline strong { color: #000 !important; }
  .manufacturing-estimator { display: block !important; }
  .job-spec .job-spec-total { background: #eee !important; }
  .job-spec .job-spec-total dd, .job-spec .job-spec-total dt, .job-spec .job-spec-total small { color: #000 !important; }
  .bulk-note, .calc-note, .fx-status { color: #333 !important; font-size: 8.5pt; }
  body.manufacturing-page .manufacturing-bulk-section { break-before: auto; }
  body.manufacturing-page .manufacturing-bulk-section .bulk-toolbar,
  body.manufacturing-page .manufacturing-bulk-section .bulk-export { display: none !important; }
  body.manufacturing-page .manufacturing-bulk-section .matrix-block-head .text-link,
  body.manufacturing-page .manufacturing-bulk-section .add-row { display: none !important; }
  body.manufacturing-page .manufacturing-bulk-section .matrix-table { min-width: 0 !important; }

  /* PDF quotation mode: only the formatted quotation prints */
  html.printing-quotation .header-shell, html.printing-quotation main > *:not(#bulk-order) { display: none !important; }
  html.printing-quotation #bulk-order > *:not(.quotation-sheet) { display: none !important; }
  html.printing-quotation .quotation-sheet { display: block !important; }
  .quotation-sheet .qs-head { display: flex; justify-content: space-between; gap: 10mm; margin-bottom: 8mm; padding-bottom: 4mm; border-bottom: 2px solid #000; }
  .quotation-sheet .qs-brand { margin: 0 0 2mm; font-size: 9pt; letter-spacing: .16em; text-transform: uppercase; }
  .quotation-sheet h2 { margin: 0; font-size: 22pt !important; }
  .quotation-sheet dl { display: grid; grid-template-columns: auto auto; gap: 1mm 6mm; margin: 0; font-size: 9.5pt; }
  .quotation-sheet dl > div { display: contents; }
  .quotation-sheet dt { color: #555; }
  .quotation-sheet dd { margin: 0; font-weight: 700; }
  .quotation-sheet .num { text-align: right !important; }
  .quotation-sheet tfoot th, .quotation-sheet tfoot td { font-weight: 700; background: #eee !important; }
  .quotation-sheet .qs-note { margin-top: 6mm; font-size: 8.5pt; color: #333; }
}

/* calculator copy: align to top and keep in view next to the live panel */
body.layout-v18 .manufacturing-estimator .estimator-copy { align-self: start; }
@media (min-width: 961px) { body.layout-v18 .manufacturing-estimator .estimator-copy { position: sticky; top: 112px; } }

/* =====================================================================
   LUXURY HERO POLISH — visual-only override
   ===================================================================== */
body.layout-v18.home-page .hero-main-image {
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

body.layout-v18.home-page .hero-main-image img {
  -webkit-mask-image: radial-gradient(circle, black 40%, transparent 75%);
  mask-image: radial-gradient(circle, black 40%, transparent 75%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 112% 112%;
  mask-size: 112% 112%;
  animation: goldageHeroFloat 8s ease-in-out infinite;
  will-change: transform;
}

/* Smoked-glass content card: keeps the existing composition, but gives the copy a premium layered surface. */
body.layout-v18.home-page .hero-copy {
  width: min(700px, calc(100% - 44px));
  margin: 0 0 clamp(54px, 7vw, 94px) clamp(22px, 8vw, 116px);
  padding: clamp(30px, 3.4vw, 46px);
  border-radius: 16px;
  background: rgba(10, 20, 15, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

body.layout-v18.home-page .hero h1 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

body.layout-v18.home-page .hero-intro {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* Warm-gold primary CTA. */
body.layout-v18.home-page .hero .primary-button {
  color: #172018;
  background: #d9b44a;
  border: 1px solid #d9b44a;
  font-weight: 800;
}
body.layout-v18.home-page .hero .primary-button:hover {
  color: #172018;
  background: #ebcb68;
  border-color: #ebcb68;
}

/* Clean ghost treatment for the hero's Download Line Sheet CTA. */
body.layout-v18.home-page .hero .secondary-hero-button,
body.layout-v18.home-page .line-sheet-button {
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  background: transparent;
  border-radius: 3px;
}
body.layout-v18.home-page .hero .secondary-hero-button {
  min-height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}
body.layout-v18.home-page .hero .secondary-hero-button:hover,
body.layout-v18.home-page .line-sheet-button:hover {
  color: #172018;
  background: white;
  border-color: white;
}

@media (max-width: 900px) {
  body.layout-v18.home-page .hero-copy {
    width: calc(100% - 36px);
    margin: 0 18px 38px;
    padding: 25px 22px;
  }
  body.layout-v18.home-page .hero-main-image img {
    -webkit-mask-size: 132% 132%;
    mask-size: 132% 132%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.layout-v18.home-page .hero-main-image img {
    animation: none;
  }
}


/* =====================================================================
   GOLDAGE LUXURY B2B HERO — 2026-10
   ===================================================================== */
body.layout-v18.home-page .hero {
  min-height: clamp(650px, 76vh, 840px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  align-items: center;
  gap: clamp(20px, 4vw, 70px);
  padding: clamp(36px, 6vw, 80px) var(--layout-edge);
  overflow: hidden;
  background: #062f2d;
}
body.layout-v18.home-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
}
body.layout-v18.home-page .hero::after {
  background: linear-gradient(90deg, rgba(2,22,21,.74), rgba(4,55,52,.32) 62%, rgba(4,55,52,.08));
}
body.layout-v18.home-page .hero-copy {
  position: relative;
  z-index: 3;
  width: min(650px,100%);
  margin: 0;
  padding: clamp(28px, 4vw, 50px);
  background: rgba(15, 25, 20, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  border-radius: 16px;
}
body.layout-v18.home-page .hero-visual {
  position: relative;
  inset: auto;
  width: 100%;
  height: min(62vw, 650px);
  display: grid;
  place-items: center;
  z-index: 2;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 65%);
}
body.layout-v18.home-page .hero-main-image {
  width: 100%;
  max-width: 760px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  position: relative;
}
body.layout-v18.home-page .hero-main-image picture,
body.layout-v18.home-page .hero-main-image img { width: 100%; height: 100%; }
body.layout-v18.home-page .hero-main-image img {
  object-fit: contain;
  filter: drop-shadow(0 28px 24px rgba(0,0,0,.36)) drop-shadow(0 8px 10px rgba(0,0,0,.28));
  -webkit-mask-image: radial-gradient(circle, black 40%, transparent 75%);
  mask-image: radial-gradient(circle, black 40%, transparent 75%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: 112% 112%; mask-size: 112% 112%;
  animation: goldageHeroFloat 9s ease-in-out infinite;
  will-change: transform;
}
body.layout-v18.home-page .hero-main-image figcaption { z-index: 4; right: 2%; bottom: 4%; }
body.layout-v18.home-page .hero h1 { line-height: 1.15; letter-spacing: -0.02em; }
body.layout-v18.home-page .hero-intro { color: rgba(255,255,255,.75); line-height: 1.6; }
body.layout-v18.home-page .hero .primary-button {
  background: #d9b44a; border-color: #d9b44a; color: #172018; font-weight: 800;
}
body.layout-v18.home-page .hero .secondary-hero-button {
  border: 1px solid rgba(255,255,255,.3); color: #fff; background: transparent;
}
body.layout-v18.home-page .hero .secondary-hero-button:hover {
  background: #fff; color: #172018; border-color: #fff;
}
@keyframes goldageHeroFloat {
  0%,100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(0,-12px,0); }
}

/* Manufacturing page uses the same luxury visual language without changing its content hierarchy. */
body.layout-v18.manufacturing-page .luxury-manufacturing-hero {
  min-height: clamp(620px, 72vh, 800px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
  padding: clamp(40px, 7vw, 90px) var(--layout-edge);
  position: relative;
  overflow: hidden;
  background: #062f2d;
}
body.layout-v18.manufacturing-page .luxury-manufacturing-hero::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 65%);
}
body.layout-v18.manufacturing-page .luxury-manufacturing-hero .manufacturing-page-hero-copy {
  position: relative; z-index: 2; margin: 0; max-width: 680px; padding: clamp(28px,4vw,50px);
  background: rgba(15,25,20,.45); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 60px rgba(0,0,0,.5); border-radius: 16px;
}
body.layout-v18.manufacturing-page .manufacturing-page-hero-visual {
  position: relative; z-index: 2; min-height: 440px; display:grid; place-items:center;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 65%);
}
body.layout-v18.manufacturing-page .manufacturing-page-hero-visual .hero-main-image { width:100%; max-width:720px; }
body.layout-v18.manufacturing-page .manufacturing-page-hero-visual img {
  width:100%; height:auto; object-fit:contain;
  filter: drop-shadow(0 28px 24px rgba(0,0,0,.36));
  -webkit-mask-image: radial-gradient(circle, black 40%, transparent 75%); mask-image: radial-gradient(circle, black 40%, transparent 75%);
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat; -webkit-mask-position:center; mask-position:center; -webkit-mask-size:112% 112%; mask-size:112% 112%;
  animation: goldageHeroFloat 9s ease-in-out infinite;
}
body.layout-v18.manufacturing-page .luxury-manufacturing-hero .secondary-hero-button { border:1px solid rgba(255,255,255,.3); color:#fff; background:transparent; }
body.layout-v18.manufacturing-page .luxury-manufacturing-hero .secondary-hero-button:hover { background:#fff; color:#172018; }

/* B2B matrix polish */
body.layout-v18 .bulk-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
body.layout-v18 .bulk-submit-status { color:#687873; font-size:.75rem; min-height:1em; }
body.layout-v18 .matrix-table input[type="number"] { min-width:70px; text-align:center; font-variant-numeric:tabular-nums; }
body.layout-v18 .matrix-table select { min-width:110px; }

@media (max-width: 900px) {
  body.layout-v18.home-page .hero,
  body.layout-v18.manufacturing-page .luxury-manufacturing-hero { grid-template-columns: 1fr; min-height: auto; }
  body.layout-v18.home-page .hero-copy,
  body.layout-v18.manufacturing-page .luxury-manufacturing-hero .manufacturing-page-hero-copy { width:100%; max-width:none; }
  body.layout-v18.home-page .hero-visual,
  body.layout-v18.manufacturing-page .manufacturing-page-hero-visual { min-height:380px; height:420px; }
}
@media (max-width: 560px) {
  body.layout-v18.home-page .hero { padding:28px 18px 44px; }
  body.layout-v18.home-page .hero-copy,
  body.layout-v18.manufacturing-page .luxury-manufacturing-hero .manufacturing-page-hero-copy { padding:24px 20px; }
  body.layout-v18.home-page .hero-visual,
  body.layout-v18.manufacturing-page .manufacturing-page-hero-visual { min-height:300px; height:340px; }
}

@media print {
  body.layout-v18 .header-shell,
  body.layout-v18 .nav-links,
  body.layout-v18 .header-actions,
  body.layout-v18 .bulk-toolbar,
  body.layout-v18 .bulk-export,
  body.layout-v18 [data-print-page],
  body.layout-v18 .p5-background,
  body.layout-v18 .hero-actions { display:none !important; }
  body.layout-v18 .luxury-manufacturing-hero,
  body.layout-v18.home-page .hero { background:#fff !important; color:#111 !important; min-height:auto !important; padding:8mm 0 !important; display:block !important; }
  body.layout-v18 .luxury-manufacturing-hero .manufacturing-page-hero-copy,
  body.layout-v18.home-page .hero-copy { background:#fff !important; color:#111 !important; box-shadow:none !important; border:0 !important; backdrop-filter:none !important; padding:0 !important; }
  body.layout-v18 .manufacturing-page-hero-visual,
  body.layout-v18.home-page .hero-visual { display:none !important; }
}

/* Jewelpark-inspired catalogue homepage layer. The structure stays GoldAge-specific. */
.jp-hero{position:relative;min-height:clamp(540px,72vh,820px);display:grid;place-items:end start;overflow:hidden;background:#101512;border-bottom:1px solid rgba(255,255,255,.08)}
.jp-hero-media,.jp-hero-media img,.jp-hero-overlay{position:absolute;inset:0;width:100%;height:100%}.jp-hero-media img{object-fit:cover;object-position:center 48%;filter:saturate(.78) contrast(1.03);transform:scale(1.03)}
.jp-hero-overlay{background:linear-gradient(90deg,rgba(5,10,8,.86) 0%,rgba(5,10,8,.58) 34%,rgba(5,10,8,.12) 68%,rgba(5,10,8,.32) 100%),linear-gradient(0deg,rgba(5,10,8,.68),transparent 42%)}
.jp-hero-content{position:relative;z-index:2;width:min(680px,calc(100% - 48px));margin:0 0 clamp(54px,8vw,100px) clamp(24px,7vw,110px);color:#fff}.jp-hero-content h1{font-family:'Cormorant Garamond',serif;font-size:clamp(58px,8vw,112px);line-height:.86;letter-spacing:-.04em;margin:18px 0 28px;font-weight:600}.jp-hero-content h1 em{font-weight:500}.jp-hero-content>p:not(.eyebrow){max-width:570px;color:rgba(255,255,255,.78);font-size:.9375rem;line-height:1.8}.jp-hero-actions{display:flex;align-items:center;gap:28px;margin-top:30px}.jp-text-link{color:inherit;text-decoration:none;font-weight:700;border-bottom:1px solid currentColor;padding-bottom:7px}.jp-hero-content .jp-text-link{color:#fff}
.jp-category-nav{display:grid;grid-template-columns:180px 1fr;gap:40px;align-items:center;padding:24px clamp(24px,5vw,72px);border-bottom:1px solid var(--line,#d8ded9);background:#f7f7f3}.jp-section-label{display:flex;flex-direction:column;gap:4px}.jp-section-label span,.jp-kicker{font-size:.75rem;letter-spacing:.22em;font-weight:800}.jp-section-label small{color:#6f7874}.jp-category-links{display:flex;flex-wrap:wrap;gap:10px 34px}.jp-category-links a{color:#183f3a;text-decoration:none;font-weight:700;font-size:.875rem}.jp-category-links a:hover{text-decoration:underline}
.jp-collection{padding:clamp(56px,7vw,100px) clamp(24px,5vw,72px);background:#fbfaf6}.jp-heading-row{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:32px}.jp-heading-row h2,.jp-services h2,.jp-faq h2,.jp-contact h2{font-family:'Cormorant Garamond',serif;font-size:clamp(42px,5vw,70px);line-height:.95;margin:10px 0 0;color:#143e39}.jp-heading-row p:not(.eyebrow){margin:12px 0 0;color:#69736e}.jp-heading-tools{display:flex;gap:12px;align-items:center}.jp-search-row{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:40px}.jp-search-row .search-box{max-width:520px;flex:1}.jp-shelf{padding:30px 0 56px;border-top:1px solid #dfe4df}.jp-shelf-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px}.jp-shelf-head h3{font:600 clamp(32px,4vw,50px)/.95 'Cormorant Garamond',serif;color:#143e39;margin:6px 0 0}.jp-shelf-head button{border:0;background:none;color:#143e39;font-weight:800;cursor:pointer}.jp-shelf-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.jp-single-shelf{grid-template-columns:minmax(0,1fr)}.jp-product-card{display:block;width:100%;padding:0;border:0;background:transparent;text-align:left;color:#173f3c;cursor:pointer}.jp-product-image{display:block;position:relative;aspect-ratio:1.18/1;background:#e9e9e4;overflow:hidden}.jp-product-image img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}.jp-product-card:hover .jp-product-image img{transform:scale(1.045)}.jp-product-image b{position:absolute;top:13px;left:14px;background:rgba(255,255,255,.84);padding:5px 7px;font-size:.75rem;letter-spacing:.1em}.jp-product-card>span:last-child{display:flex;flex-direction:column;gap:5px;padding-top:13px}.jp-product-card small{font-size:.75rem;letter-spacing:.14em;color:#8a938e}.jp-product-card strong{font-size:.9375rem}.jp-wide-product{max-width:520px}.jp-wide-product .jp-product-image{aspect-ratio:1.7/1}.jp-all-designs{margin-top:10px;padding:40px;background:#e9eee9;display:flex;justify-content:space-between;align-items:center;gap:30px}.jp-all-designs h3{font:600 clamp(34px,4vw,54px)/.95 'Cormorant Garamond',serif;margin:10px 0;color:#143e39}.catalogue-hidden-engine{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.jp-trade-strip{display:flex;justify-content:space-between;align-items:center;gap:40px;padding:70px clamp(24px,7vw,110px);background:#123e39;color:#fff}.jp-trade-strip h2{font:600 clamp(38px,5vw,66px)/.95 'Cormorant Garamond',serif;margin:12px 0}.jp-trade-strip p{color:rgba(255,255,255,.72);max-width:600px}.jp-trade-strip .primary-button{background:#fff;color:#123e39}
.jp-services{padding:90px clamp(24px,5vw,72px);background:#f7f7f3}.jp-service-grid{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #cfd8d2}.jp-service-grid article{padding:30px 34px 35px 0;border-right:1px solid #cfd8d2}.jp-service-grid article+article{padding-left:34px}.jp-service-grid span{font-size:.75rem;letter-spacing:.16em}.jp-service-grid h3{font:600 2.125rem/1 'Cormorant Garamond',serif;color:#143e39;margin:45px 0 12px}.jp-service-grid p{color:#66716c;line-height:1.75;max-width:390px}.jp-service-grid a{color:#143e39;font-weight:800;text-decoration:none}
.jp-feature{display:grid;grid-template-columns:1fr 1fr;min-height:600px;background:#102c28;color:#fff}.jp-feature-image img{width:100%;height:100%;object-fit:cover}.jp-feature-copy{padding:clamp(50px,7vw,100px);display:flex;flex-direction:column;justify-content:center}.jp-feature-copy h2{font:600 clamp(45px,5vw,72px)/.92 'Cormorant Garamond',serif;margin:15px 0 25px}.jp-feature-copy>p:not(.eyebrow){color:rgba(255,255,255,.72);line-height:1.8;max-width:560px}.jp-facts{display:flex;gap:45px;margin:40px 0}.jp-facts span{display:flex;flex-direction:column}.jp-facts strong{font:600 2.375rem 'Cormorant Garamond',serif}.jp-facts small{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.52)}.jp-feature-copy .jp-text-link{color:#fff;align-self:flex-start}
.jp-faq{display:grid;grid-template-columns:.7fr 1.3fr;gap:80px;padding:90px clamp(24px,7vw,110px);background:#fbfaf6}.jp-faq-list{border-top:1px solid #d7ddd8}.jp-faq-list details{border-bottom:1px solid #d7ddd8;padding:22px 0}.jp-faq-list summary{cursor:pointer;font-weight:800;list-style:none;display:flex;justify-content:space-between}.jp-faq-list summary::-webkit-details-marker{display:none}.jp-faq-list summary:after{content:'+';font-size:1.25rem;font-weight:400}.jp-faq-list details[open] summary:after{content:'−'}.jp-faq-list p{color:#66716c;line-height:1.75;max-width:700px}.jp-contact{padding:85px clamp(24px,7vw,110px);display:flex;justify-content:space-between;align-items:end;gap:50px;background:#e7ece7}.jp-contact h2{max-width:760px}.jp-contact>div:first-child p:not(.eyebrow){color:#68736d}.jp-contact-actions{display:flex;flex-direction:column;gap:18px;align-items:flex-start}.jp-contact-actions .jp-text-link{color:#143e39}
@media(max-width:850px){.jp-category-nav{grid-template-columns:1fr;gap:16px}.jp-heading-row,.jp-search-row,.jp-trade-strip,.jp-contact{align-items:flex-start;flex-direction:column}.jp-shelf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.jp-service-grid{grid-template-columns:1fr}.jp-service-grid article,.jp-service-grid article+article{border-right:0;border-bottom:1px solid #cfd8d2;padding:30px 0}.jp-feature,.jp-faq{grid-template-columns:1fr;gap:0}.jp-feature-image{height:420px}.jp-faq{gap:45px}.jp-all-designs{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.jp-hero{min-height:650px}.jp-hero-content{width:calc(100% - 36px);margin:0 18px 40px}.jp-hero-content h1{font-size:58px}.jp-hero-actions{align-items:flex-start;flex-direction:column;gap:18px}.jp-category-links{gap:14px 24px}.jp-shelf-grid{grid-template-columns:1fr}.jp-wide-product{max-width:none}.jp-product-image{aspect-ratio:1.25/1}.jp-heading-tools{flex-wrap:wrap}.jp-facts{gap:25px}.jp-facts strong{font-size:31px}}

/* =========================================================
   FINAL CONTRAST + READABILITY PASS
   Keeps the existing layout and visual direction intact while
   guaranteeing readable headings over photography/gradients.
   ========================================================= */

/* Shared heading rendering: prevent thin text from disappearing into imagery. */
body.layout-v18 h1,
body.layout-v18 h2,
body.layout-v18 h3,
body.layout-v18 .eyebrow,
body.layout-v18 .jp-kicker {
  text-wrap: balance;
}

/* Homepage hero: make the copy independent of the underlying photo. */
body.layout-v18.home-page .jp-hero-content {
  isolation: isolate;
  padding: clamp(26px, 3.2vw, 46px);
  margin-bottom: clamp(34px, 6vw, 84px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(3,18,15,.78), rgba(3,25,22,.58));
  box-shadow: 0 24px 70px rgba(0,0,0,.38);
  backdrop-filter: blur(16px) saturate(.9);
  -webkit-backdrop-filter: blur(16px) saturate(.9);
}
body.layout-v18.home-page .jp-hero-content h1 {
  color: #fff;
  text-shadow: 0 3px 18px rgba(0,0,0,.48);
}
body.layout-v18.home-page .jp-hero-content .eyebrow {
  color: #f1d27a;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
body.layout-v18.home-page .jp-hero-content > p:not(.eyebrow) {
  color: rgba(255,255,255,.92);
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
body.layout-v18.home-page .jp-hero-content .jp-text-link {
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}

/* About + manufacturing hero copy: retain the glass treatment and raise text contrast. */
body.layout-v18.about-page .about-hero-copy,
body.layout-v18.manufacturing-page .manufacturing-page-hero-copy {
  isolation: isolate;
  padding: clamp(26px, 3.2vw, 48px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(3,18,16,.78), rgba(3,31,28,.55));
  box-shadow: 0 24px 70px rgba(0,0,0,.38);
  backdrop-filter: blur(18px) saturate(.9);
  -webkit-backdrop-filter: blur(18px) saturate(.9);
}
body.layout-v18.about-page .about-hero-copy h1,
body.layout-v18.manufacturing-page .manufacturing-page-hero-copy h1 {
  color: #fff;
  text-shadow: 0 3px 18px rgba(0,0,0,.48);
}
body.layout-v18.about-page .about-hero-copy .eyebrow,
body.layout-v18.manufacturing-page .manufacturing-page-hero-copy .eyebrow {
  color: #f1d27a;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
body.layout-v18.about-page .about-hero-copy > p:not(.eyebrow),
body.layout-v18.manufacturing-page .manufacturing-page-hero-copy > p:not(.eyebrow) {
  color: rgba(255,255,255,.94);
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

/* Sections with a dark photographic/gradient treatment. */
body.layout-v18 .jp-feature-copy h2,
body.layout-v18 .jp-trade-strip h2,
body.layout-v18 .jp-feature-copy .eyebrow,
body.layout-v18 .jp-trade-strip .jp-kicker {
  text-shadow: 0 2px 14px rgba(0,0,0,.3);
}
body.layout-v18 .jp-feature-copy .eyebrow,
body.layout-v18 .jp-trade-strip .jp-kicker {
  color: #f1d27a;
}
body.layout-v18 .jp-feature-copy > p:not(.eyebrow),
body.layout-v18 .jp-trade-strip p {
  color: rgba(255,255,255,.9);
}

/* Hero/product captions remain readable over bright jewelry photography. */
body.layout-v18 .hero-main-image figcaption,
body.layout-v18 .jp-product-image b {
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
body.layout-v18 .jp-product-image b {
  color: #143e39;
  background: rgba(255,255,255,.94);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

/* Small labels on pale gradients need stronger ink than the original muted grey. */
body.layout-v18 .jp-heading-row p:not(.eyebrow),
body.layout-v18 .jp-section-label small,
body.layout-v18 .jp-product-card small,
body.layout-v18 .jp-service-grid p,
body.layout-v18 .jp-faq-list p,
body.layout-v18 .jp-contact > div:first-child p:not(.eyebrow) {
  color: #4e625e;
}

/* Legal pages: keep headings distinct even where the page background has radial color. */
body.layout-v18.legal-page .legal-shell h1,
body.layout-v18.legal-page .legal-shell h2 {
  color: #073f3d;
  text-shadow: 0 1px 0 rgba(255,255,255,.75);
}
body.layout-v18.legal-page .legal-lead,
body.layout-v18.legal-page .legal-section p {
  color: #405b57;
}

/* Registration headings and form legends sit above decorative gradients. */
body.layout-v18.registration-page .registration-intro h1,
body.layout-v18.registration-page .registration-heading h2,
body.layout-v18.registration-page .registration-group legend {
  color: #073f3d;
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
}
body.layout-v18.registration-page .registration-intro > p,
body.layout-v18.registration-page .registration-heading > p:last-child {
  color: #405b57;
}

/* Never sacrifice readability when users reduce motion or print. */
@media (prefers-reduced-motion: reduce) {
  body.layout-v18 .jp-hero-content,
  body.layout-v18 .about-hero-copy,
  body.layout-v18 .manufacturing-page-hero-copy {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 900px) {
  body.layout-v18.home-page .jp-hero-content,
  body.layout-v18.about-page .about-hero-copy,
  body.layout-v18.manufacturing-page .manufacturing-page-hero-copy {
    width: calc(100% - 36px);
    margin-left: 18px;
    margin-right: 18px;
  }
}

@media (max-width: 560px) {
  body.layout-v18.home-page .jp-hero-content,
  body.layout-v18.about-page .about-hero-copy,
  body.layout-v18.manufacturing-page .manufacturing-page-hero-copy {
    width: calc(100% - 28px);
    margin-left: 14px;
    margin-right: 14px;
    padding: 22px 20px;
    border-radius: 14px;
  }
}

@media print {
  body.layout-v18.home-page .jp-hero-content,
  body.layout-v18.about-page .about-hero-copy,
  body.layout-v18.manufacturing-page .manufacturing-page-hero-copy {
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
    border: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    text-shadow: none !important;
  }
}
