:root {
  color-scheme: light;
  --ink: #141c27;
  --muted: #505c6b;
  --red: #be1234;
  --line: #e0e5eb;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid #1479b7; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure { margin: 0; }
.wrap { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
.header { border-bottom: 1px solid var(--line); background: white; }
.bar, .footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bar { min-height: 87px; }
.brand img { width: 180px; }
nav, .footer div { display: flex; gap: clamp(16px, 3vw, 40px); align-items: center; }
nav a { font-size: .94rem; font-weight: 650; }
.english { color: var(--muted); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 10px 21px; border: 1px solid var(--red); background: var(--red); color: #fff; font-weight: 700; border-radius: 4px; }
.button:hover { background: #9c0c2a; color: white; }
.button.small { min-height: 44px; font-size: .94rem; }
.button.outline { border-color: #8995a2; background: transparent; color: var(--ink); }
.button.outline:hover { border-color: var(--red); color: var(--red); }
.hero { background: linear-gradient(105deg, #f1f4f8, #fcfcfd 70%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.03fr; gap: 38px; align-items: center; padding-block: 52px; }
.kicker { font-size: .85rem; font-weight: 800; letter-spacing: .14em; color: var(--red); display: flex; align-items: center; gap: 10px; }
.kicker span { width: 20px; height: 3px; flex: none; background: currentColor; }
h1 { font-size: clamp(2.5rem, 5vw, 4.7rem); line-height: 1.13; letter-spacing: -.04em; margin: 17px 0 21px; }
.intro { max-width: 28em; font-size: clamp(1rem, 1.65vw, 1.21rem); color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-image { background: white; border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 16px 18px 13px; box-shadow: 0 18px 45px #20365012; }
.hero-image img { width: 100%; max-height: 390px; object-fit: contain; }
figcaption { font-size: .88rem; color: var(--muted); padding: 9px 0 0; }
.section { padding-block: 66px; }
h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); line-height: 1.2; letter-spacing: -.035em; margin-block: 11px 25px; }
.cards, .service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.card-image { background: #f2f4f7; aspect-ratio: 16/9; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
#casting .card-image img { object-fit: contain; background: #fff; }
.card-body { padding: 20px; }
.tag { font-size: .88rem; color: var(--red); font-weight: 750; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin: 6px 0 9px; line-height: 1.35; }
.card-body > p:not(.tag) { min-height: 5em; }
.card-body p:not(.tag), .service-grid p, .split p:not(.kicker) { color: var(--muted); }
details { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
summary { cursor: pointer; font-weight: 750; }
summary:hover, .text-link, .detail a, .service-grid a { color: var(--red); }
.detail { padding-top: 12px; }
.detail a, .text-link, .service-grid a { display: inline-block; margin-top: 12px; text-decoration: underline; text-underline-offset: 4px; }
.imaging { background: #15202d; color: #fff; }
.imaging .kicker, .imaging .text-link { color: #ff95a9; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.split img { width: 100%; max-height: 347px; object-fit: contain; background: #0b1017; }
.split p:not(.kicker), .split figcaption { color: #ced6e0; }
.service-grid > div { border-top: 2px solid var(--line); padding-top: 15px; }
.contact { background: #a7122e; color: white; }
.contact-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding-block: 42px; }
.contact h2 { margin: 0 0 10px; }
.contact .actions { margin-top: 0; }
.white { background: white; color: #9c0c2a; border-color: white; }
.white-outline { background: transparent; border-color: white; }
.footer { padding-block: 25px; color: var(--muted); font-size: .9rem; }
@media (max-width: 960px) {
  .wrap { width: calc(100% - 48px); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .bar { flex-wrap: wrap; min-height: 0; gap: 0 12px; padding-top: 10px; }
  .brand img { width: 145px; }
  nav { order: 3; width: 100%; gap: 0; justify-content: space-between; padding-block: 10px; }
  .hero-grid, .cards, .split, .service-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero-grid, .section { padding-block: 38px; }
  .card-body > p:not(.tag) { min-height: 0; }
  .footer { flex-wrap: wrap; }
}

.company-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 5vw, 65px); }
.company-grid h2 { margin-bottom: 16px; }
.company-grid p:not(.kicker) { color: var(--muted); margin-top: 12px; }
.company-grid .company-name { color: var(--ink); font-size: 1.14rem; font-weight: 750; }
.company-photo img { width: 100%; border-radius: 5px; }
.company-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 22px; font-weight: 700; }
.company-links a:not(.button) { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.solutions-band { background: #f4f6f9; border-block: 1px solid var(--line); }
.solutions-band .card { background: #fff; }
.project-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.featured-project, .project-list article { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: white; }
.featured-project > img { width: 100%; aspect-ratio: 2.15; object-fit: cover; }
.project-copy { padding: 20px; }
.project-copy > p:not(.tag) { color: var(--muted); }
.project-list { display: grid; grid-template-rows: repeat(2, 1fr); gap: 16px; }
.project-list article { display: grid; grid-template-columns: 41% 1fr; align-items: center; }
.project-list img { width: 100%; height: 100%; object-fit: cover; }
.project-list article > div { padding: 14px; }
.project-list .text-link { margin-top: 4px; }
.about-banner { background: #15202d; color: white; }
.about-banner .kicker { color: #ff95a9; }
.about-banner h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.about-banner p:not(.kicker) { color: #dce4ed; }
.company-record { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.company-record article { border-top: 2px solid var(--line); padding-top: 18px; }
@media (max-width: 850px) {
  .bar nav { gap: 14px; }
}
@media (max-width: 740px) {
  .company-grid, .company-record, .project-grid { grid-template-columns: 1fr; }
  .bar nav { order: 3; width: 100%; gap: 8px; justify-content: space-between; padding-block: 10px; }
  .bar { flex-wrap: wrap; }
  .bar nav a { font-size: .875rem; }
}

.quick-band { background: #15202d; color: white; }
.quick-nav { display: grid; grid-template-columns: repeat(3, 1fr); }
.quick-nav a { display: grid; gap: 2px; padding: 19px clamp(12px, 3vw, 33px); border-inline-start: 1px solid #44515f; }
.quick-nav a:last-child { border-inline-end: 1px solid #44515f; }
.quick-nav strong { font-size: clamp(1rem, 2vw, 1.4rem); }
.quick-nav span { font-size: .88rem; color: #d5dce4; }
.quick-nav a:hover { background: #293748; color: white; }
.catalog, .contact-page { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.catalog .card { height: 100%; }
.catalog .card-body > p:not(.tag) { min-height: auto; }
.product-picture { display: block; }
.product-picture img { object-fit: contain; }
.product-detail ul { padding-left: 1.2em; }
.product-detail li { margin-bottom: 8px; }
.bottom-link { padding-bottom: 32px; }
.info-card { border: 1px solid var(--line); padding: 24px; border-radius: 5px; background: white; }
.crumb a { text-decoration: underline; text-underline-offset: 3px; }
.bar nav a[aria-current="page"] { color: var(--red); }
.contact-details { margin: 0; }
.contact-details dt { font-weight: 750; margin-top: 15px; }
.contact-details dd { margin: 0; color: var(--muted); }
.contact-details a { color: var(--red); }
.inquiry label { display: block; font-weight: 700; margin-top: 14px; }
.inquiry select, .inquiry textarea { width: 100%; padding: 10px; margin-top: 5px; border: 1px solid #8995a2; border-radius: 4px; font: inherit; }
.inquiry textarea { resize: vertical; }
.inquiry p { margin: 8px 0 16px; color: var(--muted); }
.inquiry button { cursor: pointer; font: inherit; font-weight: 700; }
@media (max-width: 740px) {
  .catalog, .contact-page { grid-template-columns: 1fr; }
  .quick-nav span { display: none; }
  .quick-nav a { text-align: center; padding: 13px 4px; }
}

/* Equipment photography */
.hero-image {
  padding: 0;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 22px 48px #142a4630;
}
.hero-image img {
  max-height: none;
  aspect-ratio: 4 / 3;
  padding: clamp(10px, 2vw, 28px);
  background: radial-gradient(ellipse at 50% 65%, #fff 30%, #e5edf4 100%);
  filter: contrast(1.045) saturate(.94);
  mix-blend-mode: multiply;
}
.hero-image figcaption, .company-photo figcaption {
  padding: 12px 16px;
  background: #f2f5f8;
  border-top: 1px solid #dbe3ec;
}
.company-photo { overflow: hidden; border: 1px solid #dbe3ec; border-radius: 6px; }
.company-photo img { border-radius: 0; }
.card-image img, .featured-project > img, .project-list img, .company-photo img {
  filter: contrast(1.06) saturate(.89);
}
.product-photo img, .product-picture img { object-fit: contain; }
.product-photo img { max-height: 520px; background: #edf2f6; }
.imaging figure { background: #070c13; border: 1px solid #465265; border-radius: 6px; overflow: hidden; }
.imaging figure img { max-height: none; }
.imaging figcaption { padding: 12px 16px; background: #192534; }

/* Contact panel and site footer */
.map-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 20px; }
.map-heading h2 { margin-bottom: 8px; }
.map-heading p { color: var(--muted); }
.map-heading .actions { margin-top: 0; }
.location-map {
  display: block;
  width: 100%;
  height: clamp(320px, 45vw, 490px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #e8edf2;
}
.site-footer { background: #15202d; color: #e1e8ef; }
.footer-main { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 25px; }
.footer-brand { font-weight: 750; color: #fff; }
.footer-main address { font-style: normal; margin-top: 3px; color: #c4cfdb; }
.footer-links, .footer-legal { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a:hover, .footer-legal a:hover, .footer-brand:hover { color: #ff95a9; }
.footer-legal { justify-content: center; border-top: 1px solid #455162; padding-block: 16px; font-size: .88rem; color: #c4cfdb; }
@media (max-width: 740px) {
  .map-heading, .footer-main { flex-direction: column; align-items: flex-start; }
  .footer-legal { justify-content: flex-start; }
}

.project-list { grid-template-rows: none; grid-auto-rows: minmax(116px, auto); }
#projects .featured-project > img { aspect-ratio: 4 / 3; object-position: center 55%; }
#credentials .info-card p + p { margin-top: 6px; }

.weld-hero-photo img, .weld-preview img, .product-picture img[src$="longitudinal-weld.jpg"] {
  width: 100%;
  object-fit: contain;
  filter: none;
}
.weld-hero-photo img { height: auto; aspect-ratio: 3 / 1; }
.weld-preview, .product-picture:has(img[src$="longitudinal-weld.jpg"]) { background: #e8e6ee; }
.weld-summary { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: end; margin-top: 26px; }
.weld-summary h2 { margin-bottom: 12px; }
.weld-diameter { border-left: 3px solid var(--red); padding: 10px 15px; }
.weld-diameter strong, .weld-diameter span { display: block; }
.weld-diameter strong { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.weld-diameter span { color: var(--muted); }
.weld-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; }
.weld-flow li { padding: 18px 15px; border-top: 3px solid var(--red); background: white; }
.weld-flow p { color: var(--muted); }
@media (max-width: 840px) { .weld-flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .weld-summary, .weld-flow { grid-template-columns: 1fr; } }

.aviation-detail { align-items: start; }
.aviation-photo img {
  height: auto;
  aspect-ratio: 1151 / 1536;
  max-height: none;
  object-fit: contain;
  filter: none;
}
.product-picture:has(img[src$="aviation-components.jpg"]) { background: #eef1f4; }
.product-picture img[src$="aviation-components.jpg"] { filter: none; }
.aviation-features { margin: 0 0 22px; }
.aviation-features dt { font-weight: 750; margin-top: 15px; }
.aviation-features dd { margin: 2px 0 0; color: var(--muted); }

.supplied-product img { filter: none; object-fit: contain; }

.cast-iron-main { max-width: 970px; margin-inline: auto; }
.cast-iron-secondary { width: min(100%, 360px); justify-self: center; }
.cast-iron-main img, .cast-iron-secondary img { filter: none; object-fit: contain; }
