/* Southern Mechanical Seals
   Palette is sampled from the spiral wound gasket stack photo (site/img/gaskets-spiral.jpg).
   Page order of the .stack stripe matches the order of the rings in that photo. */

@font-face {
  font-family: Archivo; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%;
  font-display: swap; src: url(fonts/archivo-roman.woff2) format("woff2");
}
@font-face {
  font-family: Archivo; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%;
  font-display: swap; src: url(fonts/archivo-italic.woff2) format("woff2");
}

:root {
  --ink: #0b1320;
  --ink-2: #16202f;
  --paper: #f6f3ec;
  --white: #fff;
  --green: #17a35b;
  --yellow: #ffc61a;
  --red: #d6291f;
  --magenta: #d42a8c;
  --ice: #9cd0f2;
  --blue: #1763d6;
  --cyan: #00a9f4;
  --muted: #4b5563;
  --on-ink-muted: #b7c0cc;
  --wrap: 1240px;
  --pad: clamp(1.1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --font: Archivo, "Arial Narrow", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: .6rem 1rem;
  background: var(--yellow); color: var(--ink); font-weight: 700;
}
.skip:focus { top: .75rem; }

/* Type: the original site's heavy italic wordmark, carried forward */
.display {
  font-style: italic; font-weight: 850; font-stretch: 112%;
  line-height: .98; letter-spacing: -.02em;
}
h1.display { font-size: clamp(2.6rem, 6.4vw, 5.25rem); }
h2.display { font-size: clamp(2rem, 4.4vw, 3.5rem); }
.label {
  font-size: .9rem; font-weight: 700; font-stretch: 80%;
  letter-spacing: .09em; text-transform: uppercase;
}
.lead { font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.45; max-width: 36em; }

/* The gasket stack: ribbed colored bands, in photo order */
.stack {
  height: 30px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 4px, var(--ink) 4px 5px),
    linear-gradient(to bottom,
      var(--green) 0 16.66%, var(--yellow) 0 33.33%, var(--red) 0 50%,
      var(--magenta) 0 66.66%, var(--ice) 0 83.33%, var(--blue) 0);
}

/* Header */
.top { background: var(--ink); color: var(--white); }
.top__in {
  display: flex; align-items: center; gap: 1rem 2rem; flex-wrap: wrap;
  padding-block: .85rem;
}
.brand {
  display: flex; align-items: center; gap: .7rem; margin-right: auto;
  color: inherit; text-decoration: none;
  font-style: italic; font-weight: 850; font-stretch: 105%;
  font-size: 1.15rem; line-height: 1.02; letter-spacing: -.01em;
}
.brand:hover { color: var(--yellow); }
.brand svg { width: 42px; height: 42px; flex: none; }
.nav ul { display: flex; flex-wrap: wrap; gap: .15rem; }
.nav a {
  display: block; padding: .5rem .75rem; color: var(--white); text-decoration: none;
  font-weight: 600; font-stretch: 90%; border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--yellow); }
.nav a[aria-current] { border-bottom-color: var(--yellow); color: var(--yellow); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.3rem; border: 0; border-radius: 3px; cursor: pointer;
  font: inherit; font-weight: 800; font-stretch: 95%; line-height: 1.1; text-decoration: none;
  background: var(--yellow); color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--red); }
.btn--sm { padding: .6rem .95rem; }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover { color: inherit; box-shadow: inset 0 0 0 2px currentColor, 4px 4px 0 var(--cyan); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { color: var(--white); box-shadow: 4px 4px 0 var(--white); }

/* Home hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.hero__grid { display: flex; align-items: center; min-height: 500px; }
.hero__copy {
  position: relative; z-index: 2; width: 54%;
  padding-block: clamp(2.5rem, 6vw, 4.5rem); padding-right: 2rem;
}
.hero__copy .label { color: var(--yellow); margin-bottom: 1rem; }
.hero__copy h1 { font-size: clamp(2.5rem, 3.75vw, 3.6rem); font-stretch: 106%; }
.hero__copy h1 span { display: block; }
.hero__copy h1 em { display: block; color: var(--cyan); }
.hero__copy .lead { margin-top: 1.4rem; color: #e2e6ec; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__photo {
  position: absolute; inset: 0 0 0 auto; width: 50vw;
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
.hero__ring {
  position: absolute; z-index: 1; pointer-events: none;
  width: clamp(170px, 19vw, 280px); right: -70px; top: -70px;
}
.spin { transform-box: fill-box; transform-origin: center; animation: spin 60s linear infinite; }
.spin--rev { animation-duration: 90s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Interior page header */
.pagehead { background: var(--ink); color: var(--white); padding-block: clamp(2.5rem, 6vw, 4.25rem); }
.pagehead .label { color: var(--yellow); margin-bottom: .75rem; }
.pagehead .lead { margin-top: 1rem; color: #e2e6ec; }
.pagehead__links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.chip {
  display: inline-block; padding: .35rem .75rem; border-radius: 99px;
  font-weight: 600; font-stretch: 90%; font-size: .95rem; text-decoration: none;
  color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4);
}
.chip:hover { background: var(--yellow); color: var(--ink); box-shadow: none; }

/* Color tiles (SMS offers) */
.offers__head { max-width: 40rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.75rem;
  min-height: 210px; padding: 1.4rem 1.5rem;
  font-style: italic; font-weight: 800; font-stretch: 104%;
  font-size: clamp(1.3rem, 2.15vw, 1.7rem); line-height: 1.12; letter-spacing: -.01em;
}
.tile i { font-style: normal; font-size: .9rem; font-weight: 700; font-stretch: 80%; letter-spacing: .09em; }
.t-yellow { --fg: var(--ink); background: var(--yellow); color: var(--fg); }
.t-red { --fg: var(--white); background: var(--red); color: var(--fg); }
.t-cyan { --fg: var(--ink); background: var(--cyan); color: var(--fg); }
.t-green { --fg: var(--ink); background: var(--green); color: var(--fg); }
.t-magenta { --fg: var(--white); background: var(--magenta); color: var(--fg); }
.t-blue { --fg: var(--white); background: var(--blue); color: var(--fg); }
.t-ice { --fg: var(--ink); background: var(--ice); color: var(--fg); }
.t-ink { --fg: var(--white); background: var(--ink); color: var(--fg); }

/* Product mosaic (home) */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.mos {
  position: relative; display: block; overflow: hidden; min-height: 300px;
  background: var(--ink); color: var(--white); text-decoration: none;
  grid-column: span 4;
}
.mos--wide { grid-column: span 8; }
.mos img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.mos:hover img { transform: scale(1.04); }
.mos span {
  position: absolute; left: 0; bottom: 0; max-width: calc(100% - 1rem); padding: .55rem .9rem .5rem;
  background: var(--ink); color: var(--white);
  font-style: italic; font-weight: 800; font-stretch: 104%; font-size: 1.2rem; line-height: 1.15;
}
.mos:hover span { background: var(--yellow); color: var(--ink); }
.more { margin-top: 1.75rem; }

/* Numbered service list */
.dark { background: var(--ink); color: var(--white); }
.dark a { color: var(--ice); }
.dark a:hover { color: var(--yellow); }
.svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 5vw, 4.5rem); margin-top: 2.25rem; }
.svc li { padding-block: 1.3rem; border-top: 2px solid rgba(255, 255, 255, .2); }
.svc h3 { font-size: 1.3rem; font-weight: 800; font-stretch: 100%; line-height: 1.2; }
.svc p { margin-top: .35rem; color: var(--on-ink-muted); }
.svc--light li { border-top-color: rgba(11, 19, 32, .18); }
.svc--light p { color: var(--muted); }

/* Call band */
.band { background: var(--cyan); color: var(--ink); }
.band__in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.band p { max-width: 28rem; margin-top: .6rem; font-size: 1.15rem; line-height: 1.4; }
.band__tel {
  color: var(--ink); text-decoration: none; white-space: nowrap;
  font-style: italic; font-weight: 850; font-stretch: 112%;
  font-size: clamp(2rem, 5.2vw, 3.75rem); letter-spacing: -.02em; line-height: 1;
}
.band__tel:hover { color: var(--white); }

/* Products page */
.products { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); margin-top: 2.5rem; }
.prod {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(1.5rem, 5vw, 4rem); scroll-margin-top: 1.5rem;
}
.prod:nth-child(even) .prod__media { order: 2; }
.prod__media { position: relative; }
.prod__media img, .prod__media svg { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.prod__media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: var(--accent);
}
.prod h3 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); color: var(--ink); }
.prod ul { margin-top: 1rem; }
.prod li { padding: .45rem 0 .45rem 1.3rem; position: relative; border-top: 1px solid rgba(11, 19, 32, .14); }
.prod li::before {
  content: ""; position: absolute; left: 0; top: 1em; width: .65rem; height: .65rem;
  border: 3px solid var(--accent); border-radius: 50%;
}
.prod li b { font-weight: 700; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.pills li {
  padding: .45rem .85rem; background: var(--white); border-radius: 99px;
  box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 600; font-stretch: 92%;
}
.note { margin-top: 1.25rem; max-width: 46rem; }

/* Line card */
.card { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.25rem) 6px; }
.card figure { background: var(--white); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card figcaption {
  padding: .85rem 1.1rem 1.1rem; font-weight: 700; line-height: 1.3; border-top: 8px solid var(--accent);
}
.card figcaption small { display: block; margin-top: .15rem; font-size: 1rem; font-weight: 400; color: var(--muted); }
.letterhead { display: flex; flex-wrap: wrap; gap: .5rem 2.25rem; margin-top: 1.25rem; font-weight: 600; }
.letterhead a { color: var(--ice); }
.letterhead a:hover { color: var(--yellow); }
.also { margin-top: clamp(2rem, 4vw, 3rem); }

/* Contact */
.reach { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.reach > * {
  display: block; min-height: 190px; padding: 1.5rem 1.6rem; text-decoration: none;
  container-type: inline-size;
}
.reach .big {
  display: block; margin-top: .9rem;
  font-style: italic; font-weight: 850; font-stretch: 106%;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.08; letter-spacing: -.015em;
}
.reach small { display: block; margin-top: .7rem; font-size: 1rem; }
.reach a:hover .big { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .12em; }
.reach a:hover { color: var(--fg); }
.reach .big--email { font-size: min(2.25rem, 7.2cqw); }

/* Contact message box */
.btn--xl { margin-top: 1.75rem; padding: 1.1rem 2rem; font-size: 1.25rem; }
.msg {
  width: min(36rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem);
  padding: 0; border: 0; border-radius: 4px; background: var(--paper); color: var(--ink);
}
.msg::backdrop { background: rgba(11, 19, 32, .78); }
.msg__body { padding: 1.5rem clamp(1.1rem, 4vw, 2rem) 1.75rem; }
.msg__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.msg h2 { font-size: 2rem; }
.msg__x {
  flex: none; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 3px; cursor: pointer;
  background: var(--ink); color: var(--white); font: inherit; font-size: 1.4rem; line-height: 1;
}
.msg__x:hover { background: var(--red); }
.msg .field { grid-template-columns: minmax(0, 1fr); gap: .15rem; padding-block: .4rem; }
.msg .field small { font-weight: 400; color: var(--muted); }
.field textarea {
  width: 100%; min-width: 0; min-height: 8.5rem; padding: .5rem .55rem; resize: vertical;
  font: inherit; color: var(--ink); background: var(--white);
  border: 0; border-bottom: 2px solid var(--ink); border-radius: 2px 2px 0 0;
}
.field textarea:focus { outline: 3px solid var(--cyan); outline-offset: 0; }
.msg__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg__send { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1rem; }
.msg__send .btn:disabled { opacity: .6; cursor: wait; }
.msg__status { flex: 1 1 12rem; font-weight: 600; line-height: 1.3; }
#message-done p { margin-bottom: 1.25rem; font-size: 1.15rem; line-height: 1.4; }

/* Data sheet */
.sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.75rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); }
.sheet__fig { background: var(--white); padding: 1rem; align-self: start; }
.sheet__fig img { width: 100%; }
.fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.fields legend {
  width: 100%; padding: 0 0 .4rem; margin-bottom: .4rem; border-bottom: 4px solid var(--accent, var(--ink));
  font-style: italic; font-weight: 800; font-stretch: 104%; font-size: 1.4rem;
}
.field { display: grid; grid-template-columns: minmax(9.5rem, 42%) minmax(0, 1fr); align-items: center; gap: .75rem; padding-block: .3rem; }
.field label { font-weight: 600; line-height: 1.25; }
.field label sub { font-size: .72em; }
.field input {
  width: 100%; min-width: 0; padding: .5rem .55rem; font: inherit; color: var(--ink);
  background: var(--white); border: 0; border-bottom: 2px solid var(--ink); border-radius: 2px 2px 0 0;
}
.field input:focus { outline: 3px solid var(--cyan); outline-offset: 0; }
.sheet__send { align-self: stretch; padding: clamp(1.4rem, 3vw, 2rem); background: var(--ink); color: var(--white); }
.sheet__send h2 { font-style: italic; font-weight: 800; font-stretch: 104%; font-size: 1.6rem; line-height: 1.15; }
.sheet__send p { margin-top: .4rem; color: var(--on-ink-muted); }
.sheet__send strong { color: var(--white); white-space: nowrap; }
.sheet__btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.printonly { display: none; }

/* Footer */
.foot { background: var(--ink); color: var(--on-ink-muted); padding-block: 2.75rem 3rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.75rem 3rem; }
.foot b { display: block; color: var(--white); font-style: italic; font-weight: 800; font-stretch: 104%; font-size: 1.15rem; }
.foot a { color: var(--on-ink-muted); }
.foot a:hover { color: var(--yellow); }
.foot ul { display: grid; gap: .2rem; }

/* Sticky tap-to-call on phones */
.callbar { display: none; }

@media (max-width: 900px) {
  .hero__grid { display: block; min-height: 0; }
  .hero__copy { width: auto; padding-right: 0; }
  .hero__photo {
    position: relative; inset: auto; width: 100%; height: 58vw; max-height: 420px;
    clip-path: polygon(0 9%, 100% 0, 100% 100%, 0 100%);
  }
  .hero__ring { top: auto; bottom: -55px; right: -55px; width: 170px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .mos, .mos--wide { grid-column: span 6; min-height: 240px; }
  .mos--wide { grid-column: span 12; }
  .svc, .prod, .sheet { grid-template-columns: minmax(0, 1fr); }
  .prod:nth-child(even) .prod__media { order: 0; }
}
@media (max-width: 640px) {
  body { padding-bottom: 3.75rem; }
  .top__in { padding-block: .7rem; gap: .4rem 1rem; }
  .top__call { display: none; }
  .brand { margin-right: 0; }
  .nav { width: 100%; }
  .nav ul { justify-content: space-between; gap: 0; }
  .nav a { padding: .4rem .25rem; font-size: .98rem; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; padding: 1.1rem 1.25rem; gap: .6rem; }
  .card, .reach { grid-template-columns: minmax(0, 1fr); }
  .reach > * { min-height: 0; }
  .mos { grid-column: span 12; }
  .field { grid-template-columns: minmax(0, 1fr); gap: .1rem; padding-block: .45rem; }
  .callbar {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; height: 3.5rem;
    background: var(--yellow); color: var(--ink); text-decoration: none;
    font-weight: 800; font-size: 1.15rem; box-shadow: 0 -2px 0 var(--ink);
  }
  .callbar:hover { color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spin { animation: none; }
  .btn, .mos img { transition: none; }
  .btn:hover { transform: none; }
  .mos:hover img { transform: none; }
}

/* Print: the data sheet and line card must work on paper */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.25; padding: 0; }
  .top, .foot, .callbar, .band, .skip, .stack, .noprint { display: none !important; }
  .printonly { display: block; }
  .pagehead { background: none; color: #000; padding: 0 0 8pt; }
  .pagehead .label, .pagehead .lead, .letterhead a { color: #000; }
  .pagehead h1.display { font-size: 20pt; }
  .pagehead .lead { font-size: 10pt; margin-top: 2pt; }
  .section { padding-block: 0; }
  .wrap { max-width: none; padding-inline: 0; }
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12pt 20pt; }
  .sheet__fig { padding: 0; }
  .sheet__fig img { width: 100%; }
  .fields legend { font-size: 12pt; border-bottom: 1.5pt solid #000; padding-bottom: 1pt; margin-bottom: 2pt; }
  .field { grid-template-columns: 48% 1fr; padding-block: 4pt; gap: 4pt; }
  .field input { padding: 1pt 2pt; border-bottom: 1pt solid #000; background: none; border-radius: 0; font-size: 10.5pt; }
  .sheet__send { background: none; color: #000; padding: 0; align-self: center; text-align: center; }
  .sheet__send h2, .sheet__send strong, .sheet__send p { color: #000; }
  .sheet__send h2 { font-size: 12pt; }
  .card { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8pt; }
  .card img { aspect-ratio: 2 / 1; }
  .card figure { break-inside: avoid; }
  .card figcaption { border-top-width: 3pt; padding: 3pt 0; }
  .pills li { box-shadow: none; padding: 0 6pt 0 0; background: none; }
}
