/* Product cutouts and maintenance service selections. */
:root { --gold: #dfb03f; }
html { scroll-behavior: auto; scroll-padding-top: 24px; }
.showroom { grid-template-columns: minmax(0,1fr); max-width: none; }
.service { border-right: 0; border-bottom: 1px solid var(--line); }
.header { height: auto; min-height: 112px; gap: 28px; padding-block: 15px; }
.brand { flex: 0 0 auto; }
.brand img { width: 280px; height: auto; }
.header nav { align-items: center; gap: 38px; font-size: 1.375rem; font-weight: 600; letter-spacing: .015em; }
.header nav a { position: relative; padding: 11px 0; line-height: 1.35; transition: color .2s ease; }
.header nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.header nav a:hover::after, .header nav a:focus-visible::after { transform: scaleX(1); }
.header nav a[href="#contact"] { padding: 11px 22px; border: 1px solid #dfb03f99; border-radius: 5px; color: var(--gold); }
.header nav a[href="#contact"]::after { display: none; }
.header nav a[href="#contact"]:hover { color: var(--navy); background: var(--gold); }
.intro { min-height: 0; padding: 20px 5% 52px; }
.intro-content { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 16px; }
.intro h1 { flex: 0 0 auto; font-size: clamp(4.5rem,7.5vw,7rem); line-height: .95; margin: 0; text-align: left; transform: none; }
.intro-bottom { flex: 1; justify-content: flex-end; align-items: center; gap: 48px; margin: 0; }
.intro-bottom p { font-size: 1rem; }
.intro-bottom p span { font-size: .9375rem; }
.intro-bottom a { font-size: .8125rem; }
.wave { height: 34px; }
.division { padding: 40px 6% 64px; min-height: 100svh; }
.division h2 { margin: 18px 0 12px; }
.division-intro { min-height: 52px; }
.preview-banner { background: var(--gold); font-size: .75rem; letter-spacing: .08em; }
.preview-banner button { letter-spacing: 0; }
.fine-label, .stage-caption, .section-number { font-size: .75rem; }
.division h2 { font-size: clamp(2.75rem, 4.5vw, 4.8rem); }
.product-stage { height: 355px; margin: 24px 0 8px; }
.stage-index { color: #dce2e5; font-size: 15rem; top: 12px; }
.product-image { width: 91%; max-width: 470px; --roll: -2deg; }
.supply .product-image { --roll: 2deg; }
.product-image img { width: 100%; height: 315px; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(0 24px 14px #17293b28); animation: product-float 7s ease-in-out infinite; }
.supply .product-image img { animation-delay: -3.5s; }
.orbit { width: 90%; bottom: 31px; height: 74px; }
.stage-caption { bottom: -5px; letter-spacing: .1em; }
.category-picker { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; padding: 28px 0 20px; }
.category-picker button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 10px 8px; border: 1px solid #c9d1d7; border-radius: 4px; font-size: .875rem; line-height: 1.35; color: #364652; }
.category-picker button small { font-size: .75rem; opacity: .7; }
.category-picker button[aria-pressed=true] { border-color: var(--navy); color: white; }
.category-picker button:hover { border-color: #637789; }
.product-detail { min-height: 0; }
.product-detail p { max-width: 680px; }
.product-detail .eyebrow { font-size: .75rem; }
.product-detail h3 { font-size: 1.5rem; }
.product-note { font-size: .8125rem; line-height: 1.6; color: #5a6872; margin-top: 20px; max-width: 440px; }
footer a { text-decoration: underline; text-underline-offset: 4px; font-size: .875rem; }
.no-motion .product-image img { animation: none; }
@keyframes product-float { 0%,100% { transform: translateY(3px); } 50% { transform: translateY(-9px); } }
@media (max-width: 1100px) and (min-width: 651px) {
  .category-picker { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .product-stage { height: 300px; }
  .product-image img { height: 260px; }
  .product-detail { min-height: 0; }
}
@media (max-width: 650px) {
  .preview-banner { align-items: center; font-size: .75rem; letter-spacing: .03em; }
  .preview-banner span { max-width: 215px; }
  .fine-label { font-size: .75rem; max-width: 145px; }
  .intro-meta { font-size: .75rem; letter-spacing: .04em; }
  .intro-meta span:first-child { max-width: 220px; }
  .intro-meta span:last-child { white-space: nowrap; }
  .product-stage { height: 315px; max-width: 460px; margin-block: 22px 10px; }
  .product-image img { height: 280px; }
  .stage-index { font-size: 13rem; }
  .stage-caption { font-size: .75rem; letter-spacing: .05em; }
  .category-picker { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .category-picker button { font-size: .875rem; min-height: 50px; }
  .product-detail { min-height: 0; }
  .division h2 { font-size: 3.8rem; }
  .button { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .product-image img { animation: none; } }

/* Services and Supply: equipment orbiting the AME brand. */
.service { position: relative; isolation: isolate; overflow: hidden; }
.service-backdrop { position: absolute; inset: 115px 0 0; z-index: -1; pointer-events: none; overflow: hidden; }
.service-backdrop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% center; opacity: 0; filter: saturate(.65); transition: opacity .65s ease; }
.service-backdrop img.is-visible { opacity: .23; }
.service-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,var(--light) 0%,#f0f2f233 22%,#f0f2f211 44%,#f0f2f2d9 69%,var(--light) 92%); }
.service[data-background="engineering"] .service-backdrop img.is-visible,
.service[data-background="analysis"] .service-backdrop img.is-visible { object-fit: contain; object-position: center 35%; opacity: .36; }
.service .division-intro { color: #344550; }
.service .service-picker button:not([aria-pressed=true]) { background: #f4f6f7db; color: #263743; }
.service-picker button { min-height: 64px; }
.service-picker button small { flex: 0 0 auto; }
.service-image-note { color: #5a6872; font-size: .75rem; margin-top: 18px; }
.maintenance-stage, .supply .product-stage { height: 550px; width: 100%; max-width: 1160px; margin-inline: auto; }
.supply .product-image { width: 80%; max-width: 650px; }
.supply .product-image img { height: 460px; }
.maintenance-stage { display: block; perspective: none; height: 780px; max-width: 1400px; }
.maintenance-stage .stage-index { top: 28%; font-size: 11rem; color: #30435314; }
.maintenance-stage .stage-caption { z-index: 5; bottom: -4px; font-size: .75rem; color: #344550; letter-spacing: .08em; }
.maintenance-core { position: absolute; left: 50%; top: 47%; width: 34%; max-width: 400px; z-index: 2; transform: translate(-50%,-50%) rotate(-3deg); }
.maintenance-core img { width: 100%; height: 410px; object-fit: contain; filter: drop-shadow(0 22px 13px #10253744); animation: product-float 7s ease-in-out infinite; }
.maintenance-orbit { position: absolute; left: 50%; top: 47%; width: 68%; height: 68%; border: 1px solid #59758c40; border-radius: 50%; transform: translate(-50%,-50%) rotate(-4deg); }
.maintenance-orbit::after { content: ''; position: absolute; inset: 15px -18px; border: 1px solid #59758c26; border-radius: 50%; }
.orbit-product { position: absolute; left: calc(50% + var(--start-x)); top: calc(47% + var(--start-y)); width: 27%; max-width: 310px; transform: translate(-50%,-50%); will-change: transform; }
.orbit-ready .orbit-product { left: 50%; top: 47%; }
.orbit-product img { width: 100%; height: 235px; object-fit: contain; filter: drop-shadow(0 12px 8px #13263830); }
.cylinder-orbiter { width: 30%; max-width: 355px; }
.component-prompt { margin: 24px 0 0; color: #828c92; text-align: center; font-size: clamp(1.25rem,2vw,1.75rem); line-height: 1.35; font-weight: 600; letter-spacing: .045em; }
.service-heading-row { position: relative; }
.service-heading-copy { max-width: 350px; }
.service-visual-layout { display: grid; grid-template-columns: minmax(0,1fr) 132px; gap: 32px; align-items: center; }
.service .maintenance-stage { margin-top: 0; }
.client-rail { display: grid; justify-items: center; align-content: center; gap: 22px; padding-block: 20px; }
.client-rail img { width: 124px; height: 48px; object-fit: contain; mix-blend-mode: multiply; }
.client-rail .client-square { width: 64px; height: 56px; }
/* Reclaim the empty heading area while keeping the orbit and hit targets together. */
@media (min-width: 1101px) {
  .service-heading-row { display: block; }
  .service-heading-row .component-prompt { position: absolute; left: 50%; top: 26px; transform: translateX(-50%); margin: 0; white-space: nowrap; }
  .service-visual-layout { margin-top: -64px; }
  .client-rail { align-self: start; margin-top: -40px; padding-top: 0; }
  .maintenance-core { width: 40%; }
  .orbit-product { width: 32%; }
  .cylinder-orbiter { width: 36%; }
}
@media (min-width: 651px) and (max-width: 1100px) {
  .service-heading-row .component-prompt { margin-top: 24px; }
  .service-heading-copy { max-width: 640px; }
}
@media (max-width: 1100px) {
  .service-visual-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .client-rail { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 16px; padding: 16px 0 24px; max-width: 660px; width: 100%; margin-inline: auto; }
}
.component-trigger { display: block; appearance: none; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: zoom-in; touch-action: manipulation; }
.component-trigger img { pointer-events: none; transition: filter .18s ease; }
.component-trigger:hover img, .component-trigger:focus-visible img { filter: drop-shadow(0 12px 12px #ac791e77); }
.component-trigger:hover, .component-trigger:focus-visible { z-index: 6 !important; }
.component-trigger:focus-visible { outline: 3px solid #ac791e; outline-offset: 7px; }
.component-label { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 100%; padding: 5px 10px; background: var(--navy); color: white; border-radius: 4px; font-size: .875rem; line-height: 1.4; opacity: 0; pointer-events: none; }
.component-trigger:hover .component-label, .component-trigger:focus-visible .component-label { opacity: 1; }
.orbit-paused .maintenance-core img { animation-play-state: paused; }
.component-view-open { overflow: hidden; }
.component-dialog { width: min(1000px,calc(100% - 32px)); max-height: calc(100svh - 32px); margin: auto; padding: clamp(20px,3vw,40px); border: 1px solid #cbd1d4; border-radius: 14px; background: var(--light); color: var(--ink); box-shadow: 0 28px 90px #0008; overflow: auto; overscroll-behavior: contain; }
.component-dialog::backdrop { background: #07111ede; backdrop-filter: blur(6px); }
.component-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; position: sticky; top: -1px; background: var(--light); z-index: 1; }
#component-close { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 8px 15px; border: 1px solid #acb6be; border-radius: 5px; background: transparent; color: var(--ink); }
#component-close:hover { background: var(--navy); color: white; }
#component-close span { font-size: 1.5rem; line-height: 1; }
#component-title { margin: 18px 0 8px; font-size: clamp(1.5rem,3vw,2.5rem); line-height: 1.2; font-weight: 500; letter-spacing: -.035em; }
#component-image { width: 100%; height: min(58svh,590px); margin: 16px auto; object-fit: contain; filter: drop-shadow(0 18px 12px #15212c20); }
#component-note { font-size: .875rem; color: var(--muted); }
.component-content { min-width: 0; }
.is-service-component .component-content { display: grid; grid-template-columns: minmax(210px, .85fr) minmax(0, 1.65fr); align-items: center; gap: 24px; }
.component-service-solutions { padding-block: 20px; }
.component-service-solutions[hidden] { display: none; }
.component-service-solutions h3 { margin: 0 0 18px; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.3; font-weight: 750; letter-spacing: -.02em; }
.component-service-solutions ul { list-style: none; margin: 0; padding: 0; }
.component-service-solutions li { position: relative; padding: 7px 0 7px 18px; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.4; font-weight: 600; }
.component-service-solutions li::before { content: "-"; position: absolute; left: 0; color: var(--gold); }
@media (max-width: 600px) {
  .is-service-component .component-content { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .is-service-component #component-image { grid-row: 1; height: min(34svh, 280px); }
  .component-service-solutions { padding-top: 6px; }
  .component-service-solutions h3 { margin-bottom: 10px; }
  .component-service-solutions li { padding-block: 5px; }
}
.no-motion .maintenance-core img { animation: none; }
.no-motion .service-backdrop img { transition: none; }
@media (max-width: 1100px) and (min-width: 651px) {
  .maintenance-stage, .supply .product-stage { height: 450px; }
  .maintenance-stage { height: 680px; }
  .maintenance-core { width: 35%; max-width: 320px; }
  .maintenance-core img { height: 290px; }
  .orbit-product { width: 29%; max-width: 255px; }
  .orbit-product img { height: 180px; }
  .cylinder-orbiter { width: 32%; max-width: 285px; }
  .supply .product-image img { height: 340px; }
}
@media (max-width: 1000px) {
  .brand img { width: 240px; }
  .header nav { gap: 25px; font-size: 1.25rem; }
  .showroom { grid-template-columns: 1fr; }
  .service { border-right: 0; border-bottom: 1px solid var(--line); }
  .division { padding-inline: 6%; }
  .maintenance-stage, .supply .product-stage { max-width: 740px; margin-inline: auto; }
  .category-picker { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .product-detail { min-height: 0; }
  .intro-content { gap: 24px; }
  .intro-bottom { gap: 20px; }
  .intro-bottom p span { display: none; }
  .division-intro { min-height: 0; }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 16px; }
  .header { min-height: 0; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 14px 5% 12px; }
  .brand { display: flex; justify-content: center; flex-basis: 100%; }
  .brand img { width: 230px; }
  .header nav { justify-content: space-between; gap: 12px; width: 100%; font-size: 1.125rem; letter-spacing: 0; }
  .header nav a { padding: 9px 5px; }
  .header nav a[href="#contact"] { padding: 9px 16px; }
  .intro { padding: 16px 6% 34px; }
  .intro-meta { font-size: .75rem; letter-spacing: .02em; }
  .intro-meta span:first-child { max-width: 220px; }
  .intro-content { margin-top: 12px; gap: 18px; }
  .intro h1 { font-size: 4.5rem; }
  .intro-bottom { align-items: flex-end; gap: 7px; }
  .intro-bottom p { font-size: .875rem; text-align: right; }
  .intro-bottom a { font-size: .75rem; letter-spacing: 0; text-align: right; }
  .wave { height: 22px; }
  .division { padding-top: 26px; }
  .division h2 { font-size: 3.1rem; margin-top: 15px; }
  .maintenance-stage { height: 600px; width: 100%; }
  .supply .product-stage { height: 370px; }
  .supply .product-image img { height: 310px; }
  .maintenance-core { width: 44%; max-width: 260px; }
  .maintenance-core img { height: 230px; }
  .orbit-product { width: 36%; max-width: 215px; }
  .orbit-product img { height: 140px; }
  .cylinder-orbiter { width: 38%; max-width: 240px; }
  .component-prompt { margin-top: 16px; }
  .client-rail img { width: 90px; height: 42px; }
  .client-rail .client-square { width: 52px; height: 48px; }
  .service .maintenance-stage { margin-top: 0; }
  .component-label { font-size: .8125rem; }
  .category-picker { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .category-picker button { padding-inline: 6px; }
  .service-backdrop { inset: 95px 0 0; }
  .service-backdrop img { object-position: 50% center; }
  .maintenance-stage .stage-caption { letter-spacing: .03em; }
}
@media (prefers-reduced-motion: reduce) { .maintenance-core img { animation: none; } .service-backdrop img { transition: none; } }

/* Services and Supply share one equipment orbit. */
.service-visual-layout { grid-template-columns: 180px minmax(0,1fr) 124px; gap: 22px; }
.service-heading-copy { max-width: 300px; }
.service .maintenance-stage { height: 740px; margin-block: 0 8px; }
.maintenance-core { width: 44%; max-width: 340px; }
.maintenance-core img { height: 340px; }
.orbit-product { width: 23%; max-width: 190px; }
.orbit-product img { height: 165px; }
.cylinder-orbiter { width: 26%; max-width: 215px; }
.maintenance-orbit { width: 74%; }
.supply-panel { align-self: start; min-width: 0; scroll-margin-top: 24px; }
.supply-panel h2 { margin: 0 0 12px; }
.supply-tagline { font-size: .875rem; line-height: 1.55; color: var(--muted); }
.supply-panel .supply-picker { display: grid; gap: 7px; padding: 18px 0; }
.supply-panel .supply-picker button { padding: 10px 9px; min-height: 44px; border: 1px solid #afbac370; border-radius: 4px; background: #f0f2f2bb; color: var(--ink); text-align: left; font-size: .875rem; line-height: 1.3; }
.supply-panel .supply-picker button:hover, .supply-panel .supply-picker button.is-selected { border-color: var(--gold); background: #dfb03f22; }
.supply-enquiry { display: inline-block; font-size: .875rem; line-height: 1.45; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
#component-description { color: var(--muted); max-width: 680px; margin: 8px 0 18px; }
#component-contact { margin-bottom: 16px; }
#component-contact[hidden] { display: none; }
.ame-corner-logo { position: relative; display: block; width: 260px; max-width: 65%; margin: 0 0 24px; }
.ame-corner-logo img { width: 100%; height: auto; }
.spotlight-label { position: absolute; left: 50%; top: calc(47% + 150px); transform: translateX(-50%); width: max-content; max-width: 55%; text-align: center; color: var(--muted); font-size: .875rem; font-weight: 600; pointer-events: none; z-index: 5; }
@media (max-width: 760px) {
  .ame-corner-logo { width: 220px; margin-bottom: 20px; }
  .spotlight-label { top: calc(47% + 90px); font-size: .75rem; }
}
.maintenance-stage .stage-index { display: none; }
.wheel-controls { display: flex; justify-content: center; padding-top: 10px; }
.wheel-controls button { background: #f0f2f2cc; color: var(--muted); border: 1px solid #aab6bf; border-radius: 4px; padding: 5px 14px; min-height: 44px; font-size: .8125rem; }
.wheel-controls button:hover { border-color: var(--gold); color: var(--ink); }
@media (min-width: 1101px) {
  .service-heading-row .component-prompt { left: 62%; width: 70%; max-width: 780px; white-space: normal; font-size: clamp(1rem,1.65vw,1.4rem); }
}
@media (min-width: 1101px) {
  .service-visual-layout { margin-top: -120px; }
  .supply-panel { margin-top: 145px; }
  .client-rail { margin-top: -12px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .service-heading-copy { max-width: 640px; }
  .service-visual-layout { grid-template-columns: 160px minmax(0,1fr); margin-top: 8px; }
  .supply-panel { margin-top: 45px; }
  .service .maintenance-stage { height: 680px; }
  .maintenance-core { max-width: 250px; }
  .maintenance-core img { height: 270px; }
  .orbit-product { width: 26%; max-width: 150px; }
  .orbit-product img { height: 130px; }
  .cylinder-orbiter { width: 28%; }
  .client-rail { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .service-heading-copy { max-width: 100%; }
  .service-visual-layout { display: flex; flex-direction: column; gap: 22px; }
  .service .maintenance-stage { order: 0; height: 680px; width: 100%; }
  .supply-panel { order: 1; width: 100%; margin: 0; }
  .client-rail { order: 2; }
  .maintenance-core { width: 44%; max-width: 250px; }
  .maintenance-core img { height: 230px; }
  .orbit-product { width: 29%; max-width: 150px; }
  .orbit-product img { height: 105px; }
  .cylinder-orbiter { width: 31%; }
  .supply-panel .supply-picker { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .maintenance-stage .stage-caption { font-size: .6875rem; letter-spacing: 0; }
}

/* Keep the introduction together and vertically centered beside the wheel. */
.showroom-heading { width: 100%; margin-bottom: 26px; }
.showroom-heading > .fine-label { display: block; text-align: right; max-width: none; }
.showroom-heading .component-prompt { position: static; transform: none; width: 100%; max-width: none; margin: 18px 0 0; text-align: center; font-size: clamp(1rem,1.65vw,1.4rem); }
.service-visual-layout { grid-template-columns: 300px minmax(0,1fr) 124px; margin-top: 0; }
.service-summary { align-self: center; min-width: 0; padding-bottom: 32px; }
.service-summary .ame-corner-logo { width: 300px; max-width: 100%; margin-bottom: 20px; }
.service-summary .service-heading-copy { max-width: 100%; }
.service-summary .supply-panel { margin: 26px 0 0; }
.service-summary .supply-tagline { max-width: 230px; }
.service-visual-layout .client-rail { align-self: center; margin-top: 0; }
.summary-contact { display: grid; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #bd963f66; font-style: normal; font-size: .875rem; line-height: 1.55; scroll-margin-top: 24px; }
.summary-contact a { width: fit-content; max-width: 100%; overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.summary-contact a:first-child { font-size: 1rem; font-weight: 600; }
.summary-contact p { margin: 2px 0 0; font-size: .75rem; color: var(--muted); }
@media (min-width: 761px) and (max-width: 1100px) {
  .service-visual-layout { grid-template-columns: 260px minmax(0,1fr); }
}
@media (max-width: 760px) {
  .showroom-heading { margin-bottom: 30px; }
  .service-summary { width: 100%; padding-bottom: 0; }
  .service-summary .ame-corner-logo { width: 300px; max-width: 100%; }
}
