/* HUANSHENG · drafting-sheet direction.
 * Display: Zhuque Fangsong (长仿宋, the lettering style of Chinese engineering drawings).
 * Figures: Barlow Condensed. Body: Noto Sans SC.
 * Signature: the real BP assembly drawing, plotted line by line, with a live title block. */
@import url("tokens.css");
@font-face { font-family: "HS Noto Sans SC"; src: url("assets/fonts/noto-sans-sc-site.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "HS Zhuque Fangsong"; src: url("assets/fonts/zhuque-fangsong-display.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "HS Barlow"; src: url("assets/fonts/barlow-condensed-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "HS Barlow"; src: url("assets/fonts/barlow-condensed-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* Base */
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: calc(var(--header-height) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sheet); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; font-synthesis: none; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
button:disabled { cursor: default; opacity: .35; }
a, button, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, dl, dd, ol, ul, pre { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 500; min-width: 0; overflow-wrap: break-word; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 0; }
::selection { color: var(--navy-deep); background: var(--selection); }
.figure { font-family: var(--font-figure); font-weight: 500; font-variant-numeric: lining-nums tabular-nums; letter-spacing: .02em; }
.container { width: min(var(--page-width), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--space-10); }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; transition: transform var(--dur-ui) var(--ease-out); }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 500; padding: 12px 20px; color: var(--white); background: var(--navy); }
.skip-link:focus { top: 12px; }

/* Shared headings */
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: end; gap: var(--space-4) var(--space-8); margin-bottom: var(--space-8); }
.section-heading h2, .about-copy h2, .downloads-intro h2, .contact-copy h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.2; letter-spacing: .04em; color: var(--navy); }
.section-heading p { color: var(--steel); }

/* Buttons */
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 22px; color: var(--white); background: var(--navy); border: 1px solid var(--navy); border-radius: var(--radius); font-size: 15px; font-weight: 500; line-height: 1.3; white-space: nowrap; transition: background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.button:active { transform: scale(.97); }
.button-small { min-height: 42px; padding: 8px 18px; font-size: 14px; }
.button-outline { color: var(--navy); background: transparent; border-color: var(--rule-strong); }
.button-light { color: var(--navy-deep); background: var(--white); border-color: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--navy); font-weight: 500; font-size: 15px; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 calc(100% - 10px); background-repeat: no-repeat; transition: background-size var(--dur-ui) var(--ease-out); }
@media (hover: hover) {
  .button:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
  .button-outline:hover { color: var(--white); background: var(--navy); border-color: var(--navy); }
  .button-light:hover { color: var(--white); background: transparent; border-color: var(--white); }
  .button:hover .icon, .text-link:hover .icon, .hero-link:hover .icon { transform: translateX(3px); }
  .text-link:hover { background-size: 100% 1px; }
}

/* Header */
.header { position: sticky; top: 0; z-index: 200; height: var(--header-height); background: color-mix(in srgb, var(--sheet) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out); }
.header.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 10px 24px -22px #0e2d6e80; }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--space-6); }
.brand { flex-shrink: 0; display: block; }
.brand img { width: 164px; mix-blend-mode: multiply; }
.nav { display: flex; align-items: stretch; align-self: stretch; gap: 30px; margin-left: auto; font-size: 15px; }
.nav a { position: relative; display: flex; align-items: center; white-space: nowrap; color: var(--ink); transition: color var(--dur-ui) var(--ease-out); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease-out); }
.nav a.active { color: var(--navy); }
.nav a.active::after { transform: scaleX(1); }
@media (hover: hover) { .nav a:hover { color: var(--navy); } }
.nav .nav-mobile-contact { display: none; }
.header-phone { font-size: 19px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; isolation: isolate; color: var(--white); background: var(--navy-deep); }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, #0a1f4df2 0%, #0a1f4dd4 30%, #0a1f4d59 55%, #0a1f4d00 74%), linear-gradient(0deg, #0a1f4d80, #0a1f4d00 34%); }
.hero-inner { min-height: clamp(580px, calc(100svh - var(--header-height)), 820px); display: flex; flex-direction: column; justify-content: center; padding-block: var(--space-9) 168px; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 6.6vw, 100px); line-height: 1.16; letter-spacing: .05em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: block; }
.hero-description { max-width: 34em; margin-top: var(--space-5); font-size: 17px; line-height: 1.9; color: #dbe3f0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); margin-top: var(--space-6); }
.hero-link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-size: 15px; }
/* A drawing's title block sits in the sheet's bottom-right corner; the hero echoes that. */
.hero-block { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: end; color: var(--ink); }
.hero-block > div { min-width: 150px; padding: 16px 22px 18px; background: var(--sheet); border-left: 1px solid var(--rule); border-top: 1.5px solid var(--navy); }
.hero-block > div:first-child { border-left: 1.5px solid var(--navy); }
.hero-block dt { font-size: 12px; color: var(--steel); }
.hero-block dd { margin-top: 2px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.hero-block .figure { font-size: 20px; font-weight: 600; color: var(--navy); }

/* Products: drawing sheet */
.products-section { padding-top: var(--space-9); }
.sheet { position: relative; margin: 9px; border: 1.5px solid var(--navy); outline: 1px solid var(--rule-strong); outline-offset: 8px; background: var(--white); }
.sheet::before, .sheet::after { content: ""; position: absolute; left: 50%; width: 1.5px; height: 18px; background: var(--navy); }
.sheet::before { top: -10px; }
.sheet::after { bottom: -10px; }
.sheet-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); padding: 14px 20px; border-bottom: 1px solid var(--rule); }
.sheet-views, .sheet-models { display: inline-flex; padding: 3px; gap: 2px; background: var(--film); border-radius: var(--radius); }
.sheet-views button, .sheet-models button { min-height: 36px; padding: 6px 14px; border-radius: 1px; font-size: 14px; color: var(--steel); transition: color var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out); }
.sheet-views button[aria-pressed="true"], .sheet-models button[aria-pressed="true"] { color: var(--navy); background: var(--white); box-shadow: 0 1px 2px #0e2d6e26, 0 0 0 1px var(--rule); }
@media (hover: hover) { .sheet-views button:hover, .sheet-models button:hover { color: var(--navy); } }
.sheet-models button { font-family: var(--font-figure); font-size: 17px; font-weight: 600; letter-spacing: .04em; padding-inline: 16px; }
.sheet-models button[aria-pressed="true"] { box-shadow: inset 0 -2px var(--handwheel), 0 1px 2px #0e2d6e26, 0 0 0 1px var(--rule); }
.sheet-unit { font-size: 12px; color: var(--steel); }
.sheet-stage { position: relative; display: grid; width: min(100%, 980px); margin-inline: auto; aspect-ratio: 2367 / 1600; }
.sheet-stage > * { grid-area: 1 / 1; min-width: 0; min-height: 0; }
.sheet-drawing { padding: 3% 3% 2%; transition: opacity 500ms var(--ease-in-out); }
.sheet-drawing img, .sheet-drawing svg { display: block; width: 100%; height: 100%; }
.sheet-drawing svg { overflow: visible; }
.sheet-drawing svg .dwg-lines { stroke: var(--drawing); }
.sheet-drawing svg .dwg-lines path { vector-effect: non-scaling-stroke; stroke-width: 1.1px; }
.sheet-drawing svg .dwg-labels { fill: var(--drawing); }
.sheet-photo { display: grid; place-items: center; padding: 3%; background: var(--white); clip-path: inset(0 0 0 100%); transition: clip-path 700ms var(--ease-in-out); }
.sheet-photo img { width: 100%; height: 100%; object-fit: contain; }
.sheet-stage[data-view="photo"] .sheet-photo { clip-path: inset(0 0 0 0); }
.sheet-stage[data-view="photo"] .sheet-drawing { opacity: 0; transition-delay: 200ms; }
/* Plotting: JS adds .plot-ready once the SVG is inline, then .is-plotted when the sheet scrolls into view. */
.sheet.plot-ready .dwg-lines path { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); }
.sheet.plot-ready .dwg-labels { opacity: 0; }
.sheet.is-plotted .dwg-lines path { stroke-dashoffset: 0; transition: stroke-dashoffset 1200ms var(--ease-in-out) calc(var(--i) * 12ms); }
.sheet.is-plotted .dwg-labels { opacity: 1; transition: opacity 700ms var(--ease-out) 1300ms; }
.sheet-foot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-top: 1.5px solid var(--navy); }
.sheet-intro { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); border-right: 1.5px solid var(--navy); }
.sheet-code { font-size: 13px; font-weight: 600; letter-spacing: .18em; color: var(--drawing); }
.sheet-intro h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.2; letter-spacing: .05em; color: var(--navy); }
.sheet-intro > p:not(.sheet-code) { color: var(--steel); font-size: 15px; }
.sheet-models { align-self: flex-start; margin-top: auto; }
.title-block { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.title-block > div { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 108px; padding: 16px 18px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.title-block > div:nth-child(4n) { border-right: 0; }
.title-block > div:nth-child(n + 5) { border-bottom: 0; }
.title-block dt { font-size: 12px; line-height: 1.5; color: var(--steel); }
.title-block dd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; color: var(--navy); }
.title-block dd.figure, .title-block b { font-family: var(--font-figure); font-size: clamp(28px, 2.6vw, 38px); font-weight: 600; line-height: 1; letter-spacing: .01em; }
.title-block small { font-size: 13px; color: var(--steel); }
.title-block [data-field] { transition: color 500ms var(--ease-out); }
.title-block.is-changing [data-field] { color: var(--drawing); transition-duration: 0ms; }
.sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); padding: 18px var(--space-6); border-top: 1px solid var(--rule); background: var(--sheet); }

/* Products: catalog */
.catalog { margin-top: var(--space-9); }
.catalog-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-2) var(--space-6); margin-bottom: var(--space-6); border-bottom: 1px solid var(--rule); }
.catalog-title { font-size: 22px; font-weight: 500; padding-bottom: 12px; }
.product-tabs, .segmented { position: relative; display: flex; gap: 28px; margin-bottom: -1px; }
.product-tabs { overflow-x: auto; scrollbar-width: none; }
.product-tabs::-webkit-scrollbar { display: none; }
.product-tabs button, .segmented button { position: relative; min-height: 48px; padding: 4px 0 12px; white-space: nowrap; font-size: 15px; color: var(--steel); transition: color var(--dur-ui) var(--ease-out); }
.product-tabs button[aria-selected="true"], .segmented button[aria-selected="true"] { color: var(--navy); font-weight: 500; }
@media (hover: hover) { .product-tabs button:hover, .segmented button:hover { color: var(--navy); } }
.tab-indicator { position: absolute; left: 0; bottom: 0; width: 1px; height: 2px; background: var(--navy); transform-origin: left; transition: transform 320ms var(--ease-out); pointer-events: none; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7) var(--space-5); }
.product-grid:focus-visible, .credential-grid:focus-visible { outline-offset: 12px; }
.product-card { position: relative; display: flex; flex-direction: column; }
.product-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--film); border-radius: var(--radius); }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 9%; mix-blend-mode: multiply; transition: transform 700ms var(--ease-out); }
.product-image.cover img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.product-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-top: 18px; }
.product-code { font-family: var(--font-figure); font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--drawing); }
.product-card h4 { font-size: 20px; line-height: 1.45; }
.product-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-link:focus-visible { outline: 0; }
.product-card:has(.product-link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 6px; }
.product-card p:not(.product-code) { color: var(--steel); font-size: 15px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.product-tags li { padding: 1px 9px; border: 1px solid var(--rule); border-radius: var(--radius); font-size: 13px; }
.product-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 500; color: var(--navy); }
@media (hover: hover) {
  .product-card:hover .product-image img { transform: scale(1.04); }
  .product-card:hover .product-more .icon { transform: translateX(4px); }
}
.product-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--rule); }
.product-footer p { color: var(--steel); }
.no-script { padding: var(--space-5); background: var(--film); }
.no-script a { color: var(--navy); text-decoration: underline; }

/* Capabilities */
.capabilities-section { background: var(--film); }
.capability-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-auto-rows: minmax(280px, auto); gap: var(--space-5); }
.capability-main { grid-row: span 2; }
.capability-card { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 280px; overflow: hidden; text-align: left; color: var(--white); background: var(--navy-deep); border-radius: var(--radius); }
.capability-image { position: absolute; inset: 0; z-index: -1; }
.capability-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.capability-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0a1f4deb 0%, #0a1f4d8c 38%, #0a1f4d00 68%); }
.capability-body { display: flex; flex-direction: column; gap: 6px; padding: var(--space-6); }
.capability-title { font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.25; letter-spacing: .05em; }
.capability-text { max-width: 30em; font-size: 15px; color: #dbe3f0; }
.capability-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 500; }
.capability-more .figure { min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding-inline: 6px; font-size: 13px; border: 1px solid #ffffff66; border-radius: 11px; }
@media (hover: hover) {
  .capability-card:hover .capability-image img { transform: scale(1.045); }
  .capability-card:hover .capability-more .icon { transform: translateX(4px); }
}

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-9); align-items: center; }
.about-visual { position: relative; padding-bottom: 64px; }
.about-main { width: 88%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }
.about-detail { position: absolute; right: 0; bottom: 0; width: 54%; aspect-ratio: 16 / 9; object-fit: cover; border: 8px solid var(--sheet); background: var(--white); }
.about-copy { display: flex; flex-direction: column; gap: var(--space-4); }
.about-copy h2 { margin-bottom: var(--space-2); }
.about-copy .lead { font-size: 19px; font-weight: 500; line-height: 1.7; }
.about-copy p:not(.lead) { color: var(--steel); }
/* Timeline drawn as a dimension line between real years. */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--space-5); padding-top: 22px; }
.timeline::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 1.5px; background: var(--navy); transform-origin: left; }
.timeline li { position: relative; display: flex; flex-direction: column; padding-right: 12px; font-size: 14px; color: var(--steel); }
.timeline li::before { content: ""; position: absolute; top: -22px; left: 0; width: 1.5px; height: 13px; background: var(--navy); }
.timeline li:last-child::after { content: ""; position: absolute; top: -20.5px; right: 0; border-block: 5px solid transparent; border-left: 11px solid var(--navy); }
.timeline .figure { font-size: 30px; font-weight: 600; line-height: 1.2; color: var(--navy); }
.about-values { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-3); }
.about-values li { padding: 4px 12px; font-size: 14px; color: var(--navy); background: var(--film); border-radius: var(--radius); }

/* Credentials */
.credentials-section { background: var(--film); }
.credential-toolbar { display: flex; margin-bottom: var(--space-6); border-bottom: 1px solid var(--rule); }
.segmented .figure { margin-left: 4px; font-size: 15px; color: var(--steel-light); }
.credential-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: var(--space-6) var(--space-5); }
.credential-card { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.credential-image { display: grid; place-items: center; aspect-ratio: 5 / 7; margin-bottom: 12px; padding: 12px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out), border-color 400ms var(--ease-out); }
.credential-image img { max-height: 100%; width: auto; object-fit: contain; }
.credential-title { font-size: 15px; font-weight: 500; line-height: 1.5; }
.credential-company { font-size: 13px; color: var(--steel); }
@media (hover: hover) { .credential-card:hover .credential-image { transform: translateY(-4px); border-color: var(--rule-strong); box-shadow: 0 18px 32px -24px #0e2d6e66; } }

/* Downloads */
.downloads-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-9); align-items: start; }
.downloads-intro { display: flex; flex-direction: column; gap: var(--space-4); }
.downloads-intro p { color: var(--steel); }
.manual-cover { width: min(240px, 70%); margin-top: var(--space-5); }
.manual-cover img { box-shadow: 0 30px 50px -30px #0a1f4d80, 0 0 0 1px var(--rule); }
.manual-cover figcaption { margin-top: 12px; font-size: 13px; color: var(--steel); }
.download-list { border-top: 1.5px solid var(--navy); }
.download-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-5); min-height: 92px; padding: 18px 14px; border-bottom: 1px solid var(--rule); transition: background-color var(--dur-ui) var(--ease-out); }
.download-type { display: grid; place-items: center; width: 42px; height: 50px; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--handwheel); background: linear-gradient(225deg, var(--handwheel) 0 9px, transparent 9px), var(--white); border: 1px solid currentColor; }
.download-text { display: flex; flex-direction: column; gap: 2px; }
.download-title { font-size: 17px; font-weight: 500; }
.download-meta { font-size: 13px; color: var(--steel); }
.download-size { font-size: 15px; color: var(--steel); white-space: nowrap; }
.download-item > .icon { color: var(--navy); }
@media (hover: hover) {
  .download-item:hover { background: var(--film); }
  .download-item:hover > .icon { transform: translate(3px, -3px); }
}
.download-note { margin-top: var(--space-4); font-size: 13px; color: var(--steel); }

/* Contact */
.contact-section { background: var(--navy-deep); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-9); align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-copy h2 { color: var(--white); }
.phrase { display: inline-block; }
.contact-copy > p { color: #c6d2e4; }
.contact-details { display: flex; flex-direction: column; margin-top: var(--space-5); border-top: 1px solid #ffffff33; }
.contact-details > div { padding-block: 18px; border-bottom: 1px solid #ffffff33; }
.contact-details dt { font-size: 13px; color: #a8b8d0; }
.contact-details dd { margin-top: 4px; overflow-wrap: anywhere; }
.contact-phone { font-size: 34px; font-weight: 600; letter-spacing: .03em; line-height: 1.3; }
.contact-email { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
@media (hover: hover) { .contact-details a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; } }
.copy-button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 2px 10px; font-size: 13px; color: #dbe3f0; border: 1px solid #ffffff4d; border-radius: var(--radius); transition: background-color var(--dur-ui) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.copy-button .icon { width: 15px; height: 15px; }
.copy-button:active { transform: scale(.96); }
@media (hover: hover) { .copy-button:hover { background: #ffffff1a; } }
.contact-section :focus-visible { outline-color: var(--white); }
.inquiry-form { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 4vw, 44px); color: var(--ink); background: var(--sheet); border-radius: var(--radius); }
.inquiry-form :focus-visible { outline-color: var(--focus); }
.inquiry-form h3 { font-size: 22px; }
.form-description { margin-top: -12px; font-size: 14px; color: var(--steel); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; }
.required { color: var(--handwheel); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--white); border: 1px solid var(--rule-strong); border-radius: var(--radius); transition: border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out); }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
.field select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%); background-position: calc(100% - 21px) 22px, calc(100% - 16px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: var(--steel-light); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--drawing); box-shadow: 0 0 0 3px #2a56c633; outline: 0; }
.field [aria-invalid="true"] { border-color: var(--handwheel); }
.field [aria-invalid="true"]:focus { border-color: var(--handwheel); box-shadow: 0 0 0 3px #c23b2a2e; }
.field-error { font-size: 13px; line-height: 1.5; color: var(--handwheel); }
.field-error:empty { display: none; }
.field-foot { display: flex; justify-content: space-between; gap: 12px; }
.field-count { margin-left: auto; font-size: 14px; color: var(--steel-light); }
.field-count.is-near { color: var(--handwheel); }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.form-note { font-size: 13px; color: var(--steel); }

/* Footer */
.footer { padding-block: var(--space-8) var(--space-5); background: var(--sheet); border-top: 1px solid var(--rule); }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-5); padding-bottom: var(--space-6); }
.footer-brand { display: flex; align-items: center; gap: var(--space-5); font-size: 14px; color: var(--steel); }
.footer-brand img { width: 150px; mix-blend-mode: multiply; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 14px; }
.footer-links a { min-height: 36px; display: inline-flex; align-items: center; }
@media (hover: hover) { .footer-links a:hover, .footer-bottom a:hover { color: var(--navy); } }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); padding-top: var(--space-5); border-top: 1px solid var(--rule); font-size: 13px; color: var(--steel); }
.footer-bottom a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.icon-up { transform: rotate(180deg); }

/* Dialogs */
dialog { padding: 0; color: var(--ink); background: var(--sheet); border: 0; border-radius: var(--radius); max-width: calc(100% - 32px); max-height: calc(100dvh - 48px); box-shadow: 0 40px 120px -40px #0a1426b3; overscroll-behavior: contain; }
dialog::backdrop { background: var(--overlay); }
dialog[open]::backdrop { animation: backdrop-in var(--dur-ui) ease-out both; }
dialog.is-closing::backdrop { animation: backdrop-out 160ms ease-out both; }
@keyframes backdrop-in { from { opacity: 0; } }
@keyframes backdrop-out { to { opacity: 0; } }
.dialog-close { position: sticky; top: 14px; z-index: 5; display: grid; place-items: center; width: 44px; height: 44px; margin: 14px 14px -58px auto; color: var(--navy); background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); transition: background-color var(--dur-ui) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.dialog-close:active { transform: scale(.94); }
@media (hover: hover) { .dialog-close:hover { background: var(--film); } }
.detail-dialog { width: 1080px; }
.detail-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--white); border-bottom: 1.5px solid var(--navy); }
.detail-image { display: grid; place-items: center; min-height: 360px; background: var(--film); overflow: hidden; }
.detail-image img { width: 100%; height: 100%; max-height: 440px; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.detail-image.cover img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.detail-heading { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 72px 48px 40px; }
.detail-heading h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.25; letter-spacing: .05em; color: var(--navy); }
.detail-heading p:not(.product-code) { color: var(--steel); }
.detail-body { display: flex; flex-direction: column; gap: var(--space-6); padding: 40px 48px 48px; }
.detail-label { margin-bottom: -16px; font-size: 13px; color: var(--steel); }
.model-links { display: flex; flex-wrap: wrap; gap: 8px; }
.model-links button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px; font-family: var(--font-figure); font-size: 17px; font-weight: 600; letter-spacing: .04em; color: var(--navy); border: 1px solid var(--rule-strong); border-radius: var(--radius); transition: background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out); }
@media (hover: hover) { .model-links button:hover { color: var(--white); background: var(--navy); border-color: var(--navy); } }
.detail-features { display: grid; gap: 10px; }
.detail-features li { position: relative; padding-left: 22px; }
.detail-features li::before { content: ""; position: absolute; left: 0; top: .85em; width: 10px; height: 1.5px; background: var(--drawing); }
.detail-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); border-top: 1.5px solid var(--navy); border-left: 1px solid var(--rule); }
.detail-specs > div { padding: 14px 16px; background: var(--white); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.detail-specs dt { font-size: 12px; color: var(--steel); }
.detail-specs dd { margin-top: 4px; font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--navy); overflow-wrap: anywhere; }
.detail-note { padding: 14px 16px; font-size: 14px; color: var(--steel); background: var(--film); border-left: 2px solid var(--drawing); }
.detail-expand { border-block: 1px solid var(--rule); }
.detail-expand + .detail-expand { margin-top: calc(-1 * var(--space-6)); border-top: 0; }
.detail-expand summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-weight: 500; color: var(--navy); cursor: pointer; list-style: none; }
.detail-expand summary::-webkit-details-marker { display: none; }
.detail-expand summary::after { content: "+"; font-family: var(--font-figure); font-size: 26px; font-weight: 500; transition: transform var(--dur-ui) var(--ease-out); }
.detail-expand[open] summary::after { transform: rotate(45deg); }
.detail-expand img { margin: 0 auto 20px; background: var(--white); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gallery-dialog { width: 1180px; color: var(--white); background: var(--ink); }
.gallery-dialog .dialog-close { color: var(--white); background: #ffffff14; border-color: #ffffff2e; }
@media (hover: hover) { .gallery-dialog .dialog-close:hover { background: #ffffff29; } }
.gallery-dialog :focus-visible { outline-color: var(--white); }
.gallery-heading { padding: 24px 80px 0 28px; }
.gallery-heading h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; letter-spacing: .05em; }
.gallery-heading p { font-size: 13px; color: #a8b8d0; }
.gallery-stage { position: relative; display: grid; place-items: center; height: min(62dvh, 640px); margin-top: 16px; padding-inline: 76px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
#gallery-image { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-prev, .gallery-next { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; color: var(--white); background: #ffffff14; border: 1px solid #ffffff2e; border-radius: 50%; transition: background-color var(--dur-ui) var(--ease-out), opacity var(--dur-ui) var(--ease-out); }
.gallery-prev { left: 14px; }
.gallery-prev .icon { transform: rotate(180deg); }
.gallery-next { right: 14px; }
@media (hover: hover) { .gallery-prev:not(:disabled):hover, .gallery-next:not(:disabled):hover { background: #ffffff33; } }
.gallery-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 28px 0; font-size: 14px; color: #dbe3f0; }
#gallery-count { flex-shrink: 0; font-size: 16px; color: #a8b8d0; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 28px 24px; scrollbar-width: thin; scrollbar-color: #ffffff40 transparent; }
.gallery-thumbs button { flex: 0 0 auto; width: 84px; height: 60px; overflow: hidden; background: #ffffff0d; border: 1px solid transparent; border-radius: var(--radius); opacity: .5; transition: opacity var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out); }
.gallery-thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--white); }
@media (hover: hover) { .gallery-thumbs button:hover { opacity: 1; } }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.email-dialog { width: 640px; padding: 0 36px 32px; }
.email-dialog h2 { padding-top: 34px; font-family: var(--font-display); font-weight: 400; font-size: 30px; letter-spacing: .05em; color: var(--navy); }
.email-help { margin-top: 6px; color: var(--steel); }
.email-recipient { margin-top: 18px; font-size: 14px; }
#email-preview { max-height: 320px; overflow: auto; margin: 10px 0 20px; padding: 18px; font-family: var(--font-body); font-size: 14px; line-height: 1.8; white-space: pre-wrap; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); }
.email-actions { display: flex; flex-wrap: wrap; gap: 12px; }
#email-status { margin-top: 14px; font-size: 13px; color: var(--steel); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 600; max-width: calc(100% - 32px); padding: 10px 18px; font-size: 14px; color: var(--white); background: var(--ink); border-radius: var(--radius); box-shadow: 0 14px 30px -12px #0a142680; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Motion: hero load sequence and scroll reveals */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-media img { animation: hero-settle 1800ms var(--ease-out) both; }
  .js .hero h1 .line > span { animation: line-rise 1000ms var(--ease-out) 120ms both; }
  .js .hero h1 .line:nth-child(2) > span { animation-delay: 240ms; }
  .js .hero-description { animation: fade-up 800ms var(--ease-out) 520ms both; }
  .js .hero-actions { animation: fade-up 800ms var(--ease-out) 620ms both; }
  .js .hero-block > div { animation: block-in 800ms var(--ease-out) both; }
  .js .hero-block > div:nth-child(1) { animation-delay: 700ms; }
  .js .hero-block > div:nth-child(2) { animation-delay: 760ms; }
  .js .hero-block > div:nth-child(3) { animation-delay: 820ms; }
  .js .hero-block > div:nth-child(4) { animation-delay: 880ms; }
  .motion-ready [data-reveal] { transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
  .motion-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(24px); }
  .motion-ready .capability-card[data-reveal]:nth-child(2) { transition-delay: 90ms; }
  .motion-ready .capability-card[data-reveal]:nth-child(3) { transition-delay: 180ms; }
  .motion-ready .timeline::before { transition: transform 1100ms var(--ease-in-out) 150ms; }
  .motion-ready .timeline:not(.is-visible)::before { transform: scaleX(0); }
  .motion-ready .timeline[data-reveal]:not(.is-visible) { transform: none; }
}
@keyframes hero-settle { from { opacity: .4; transform: scale(1.07); } }
@keyframes line-rise { from { transform: translateY(108%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes block-in { from { opacity: 0; transform: translateY(24px); } }

/* Responsive */
@media (max-width: 1180px) {
  .header-phone { display: none; }
  .title-block { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .title-block > div, .title-block > div:nth-child(n + 5) { min-height: 92px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .title-block > div:nth-child(2n) { border-right: 0; }
  .title-block > div:nth-child(n + 7) { border-bottom: 0; }
}
@media (max-width: 1024px) {
  .section { padding-block: var(--space-9); }
  .nav { gap: 22px; }
  .about-grid, .downloads-grid, .contact-grid { gap: var(--space-7); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-block > div { min-width: 0; padding-inline: 18px; }
}
@media (max-width: 950px) {
  :root { --header-height: 64px; }
  .brand img { width: 140px; }
  .nav-cta { margin-left: auto; }
  .menu-toggle { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -10px; }
  .menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform var(--dur-ui) var(--ease-out); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav { position: fixed; top: var(--header-height); left: 0; right: 0; z-index: 190; flex-direction: column; gap: 0; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; margin: 0; padding: 8px var(--gutter) 24px; font-size: 18px; background: var(--sheet); border-bottom: 1px solid var(--rule); box-shadow: 0 24px 40px -28px #0a142680; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out), visibility 0s linear var(--dur-ui); }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav a { min-height: 56px; border-bottom: 1px solid var(--rule); }
  .nav a::after { top: 50%; bottom: auto; left: -14px; right: auto; width: 4px; height: 4px; border-radius: 50%; transform: scale(0); }
  .nav a.active::after { transform: scale(1); }
  .nav .nav-mobile-contact { display: flex; gap: 10px; border-bottom: 0; color: var(--navy); font-size: 16px; }
  .nav-mobile-contact .figure { font-size: 20px; font-weight: 600; }
  .section-heading { grid-template-columns: 1fr; margin-bottom: var(--space-7); }
  .hero-inner { min-height: 0; padding-block: var(--space-9) var(--space-8); }
  .hero::before { background: linear-gradient(0deg, #0a1f4df2 0%, #0a1f4dcc 45%, #0a1f4d80 100%); }
  .hero-block { position: relative; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .hero-block > div, .hero-block > div:first-child { border-left: 0; border-top: 1px solid var(--rule); }
  .hero-block > div:nth-child(odd) { border-right: 1px solid var(--rule); }
  .hero-block > div:nth-child(-n + 2) { border-top: 1.5px solid var(--navy); }
  .sheet-foot { grid-template-columns: 1fr; }
  .sheet-intro { border-right: 0; border-bottom: 1.5px solid var(--navy); }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-main { grid-row: auto; min-height: 380px; }
  .about-grid, .downloads-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { order: 2; }
  .manual-cover { display: none; }
  .detail-intro { grid-template-columns: 1fr; }
  .detail-image { min-height: 240px; max-height: 320px; }
  .detail-heading { padding: 28px 24px 24px; }
  .detail-body { padding: 28px 24px 32px; }
}
@media (max-width: 680px) {
  .section { padding-block: var(--space-8); }
  .section-heading h2, .about-copy h2, .downloads-intro h2, .contact-copy h2 { font-size: clamp(32px, 9vw, 40px); }
  .hero h1 { font-size: clamp(38px, 11vw, 56px); letter-spacing: .03em; }
  .hero-description { font-size: 16px; }
  .hero-description br { display: none; }
  .hero-block > div { padding: 12px 14px 14px; }
  .hero-block dd { white-space: normal; }
  .sheet { margin: 5px; outline-offset: 4px; }
  .sheet::before { top: -6px; height: 12px; }
  .sheet::after { bottom: -6px; height: 12px; }
  .sheet-bar { padding: 10px 12px; }
  .sheet-unit { display: none; }
  .sheet-intro { padding: var(--space-5) 18px; }
  .title-block > div, .title-block > div:nth-child(n + 5) { min-height: 82px; padding: 12px 14px; }
  .title-block b, .title-block dd.figure { font-size: 26px; }
  .sheet-actions { padding: 16px 18px; }
  .sheet-actions .button { width: 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .catalog { margin-top: var(--space-8); }
  .catalog-head { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .catalog-title { padding-bottom: 0; }
  .product-tabs { gap: 22px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .capability-card { min-height: 260px; }
  .capability-body { padding: var(--space-5); }
  .credential-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) 14px; }
  .download-item { grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; padding-inline: 4px; }
  .download-size { display: none; }
  .download-title { font-size: 16px; }
  .contact-phone { font-size: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .form-submit .button { width: 100%; }
  .footer-brand { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-links { gap: 0 22px; }
  .detail-dialog, .gallery-dialog { width: 100%; max-width: 100%; max-height: 100dvh; border-radius: 0; }
  .gallery-dialog[open] { display: flex; flex-direction: column; inset: 0; width: 100%; height: 100%; max-height: none; margin: 0; padding-bottom: env(safe-area-inset-bottom); }
  .gallery-dialog[open] .gallery-stage { flex: 1; height: auto; min-height: 0; }
  .gallery-heading { padding: 18px 70px 0 18px; }
  .gallery-heading h2 { font-size: 24px; }
  .gallery-stage { height: 52dvh; padding-inline: 12px; }
  .gallery-prev, .gallery-next { display: none; }
  .gallery-caption { padding: 14px 18px 0; }
  .gallery-thumbs { padding: 14px 18px 20px; }
  .email-dialog { padding: 0 20px 24px; }
}
@media (max-width: 370px) {
  .nav-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .hero-block { grid-template-columns: 1fr; }
  .hero-block > div:nth-child(odd) { border-right: 0; }
  .hero-block > div:nth-child(2) { border-top: 1px solid var(--rule); }
  .sheet-views button { padding-inline: 10px; }
  .sheet-models button { padding-inline: 10px; font-size: 16px; }
  .credential-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
}
