:root {
  --ink: #0c1720;
  --navy: #061d33;
  --deep-blue: #041427;
  --green: #86a84a;
  --green-dark: #4c6f2c;
  --muted: #657480;
  --paper: #f5f8f8;
  --white: #ffffff;
  --line: rgba(8, 28, 45, 0.14);
  --shadow: 0 24px 70px rgba(3, 17, 31, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(5, 18, 34, 0.14), rgba(5, 18, 34, 0.14)),
    url("assets/images/principal-picture.png") center / cover fixed;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px clamp(18px, 4vw, 64px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 13, 28, 0.76), rgba(2, 13, 28, 0.18));
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  padding-block: 10px;
  background: rgba(4, 20, 39, 0.96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.ehs-logo {
  position: relative;
  display: inline-block;
  width: min(560px, 46vw);
  max-width: 100%;
}

.ehs-logo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.98))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.36))
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
  transition: filter 180ms ease, transform 180ms ease;
}

.ehs-logo:hover img {
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.98))
    drop-shadow(0 0 10px rgba(134, 168, 74, 0.78))
    drop-shadow(0 8px 22px rgba(134, 168, 74, 0.65));
  transform: translateY(-2px);
}

.ehs-logo-small {
  width: 82px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0.16em;
}

.brand small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.brand:hover strong,
.brand:hover small {
  color: var(--green);
  text-shadow: 0 4px 14px rgba(134, 168, 74, 0.55);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2vw, 30px);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
  color: var(--white);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
  transition: color 180ms ease, text-shadow 180ms ease, transform 180ms ease;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--green);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover {
  color: var(--green);
  text-shadow:
    0 1px 0 #263d18,
    0 4px 14px rgba(134, 168, 74, 0.55);
  transform: translateY(-2px);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 6px auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.96fr) minmax(280px, 390px);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: 110px clamp(18px, 5vw, 82px) 78px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(3, 15, 31, 0.91) 0%, rgba(4, 22, 43, 0.72) 38%, rgba(7, 45, 80, 0.2) 74%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(4, 14, 25, 0.74)),
    url("assets/images/principal-picture.png") center / cover no-repeat;
}

.hero-content {
  max-width: 880px;
}

.hero-logo {
  width: min(330px, 30vw);
  max-height: 16vh;
  margin: 0 0 58px -8px;
  transform: translateY(-104px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.04;
}

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 4.6vw, 4.7rem);
}

.hero-content h1 {
  margin-top: -36px;
}

h2 {
  margin-bottom: 20px;
  color: var(--green);
  font-size: clamp(2.25rem, 4vw, 4.2rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

.button-primary {
  color: var(--deep-blue);
  background: var(--green);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover {
  color: var(--deep-blue);
  background: var(--green);
}

.hero-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(2, 15, 29, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card img {
  width: 190px;
  margin-bottom: 20px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.92);
}

.hero-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}

.scroll-cue {
  position: absolute;
  left: clamp(18px, 5vw, 82px);
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  width: 28px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 20px;
}

.scroll-cue i::after {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--green);
  content: "";
  transform: translateX(-50%);
  animation: scrollDot 1.5s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 18px); }
}

.pdf-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
  padding: clamp(78px, 10vw, 128px) clamp(18px, 5vw, 82px);
}

#applications {
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
}

.pdf-section.white {
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)),
    url("assets/images/principal-picture.png") center / cover fixed;
}

.pdf-section.deep {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(4, 20, 39, 0.86), rgba(4, 50, 84, 0.76)),
    url("assets/images/principal-picture.png") center / cover fixed;
}

.pdf-section .eyebrow {
  display: none;
}

.pdf-copy p,
.pdf-copy li {
  max-width: 980px;
  color: var(--muted);
  font-size: 1.05rem;
}

.deep .pdf-copy p,
.deep .pdf-copy li {
  color: rgba(255, 255, 255, 0.78);
}

.pdf-copy ul {
  margin: 0;
  padding-left: 20px;
}

.pdf-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
}

.section-kopman {
  width: 330px;
  margin-bottom: 28px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.92);
}

.pdf-media {
  display: grid;
  gap: 18px;
}

.pdf-media.single {
  grid-template-columns: 1fr;
}

.pdf-media.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pdf-media.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.motion-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease, box-shadow 600ms ease;
}

.motion-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-card img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: contain;
  transition: transform 700ms ease, filter 700ms ease;
}

.motion-card:hover img {
  transform: scale(1.055) translateY(-4px);
  filter: saturate(1.05) contrast(1.04);
}

.motion-card:hover {
  box-shadow: none;
}

.motion-card figcaption {
  padding: 14px 12px 8px;
  color: #263642;
  font-size: clamp(1.1rem, 1.75vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

#services .motion-card figcaption {
  padding-bottom: 4px;
  font-size: clamp(1.22rem, 2vw, 1.78rem);
  line-height: 1.12;
}

.scrubber-grid {
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: center;
}

.pdf-media.safety-media {
  grid-template-columns: minmax(240px, 0.92fr) minmax(190px, 0.38fr) minmax(240px, 0.92fr);
  align-items: center;
  gap: clamp(10px, 1.8vw, 22px);
}

.safety-arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: clamp(1.05rem, 1.55vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.safety-arrows span {
  display: inline-block;
  max-width: 220px;
}

.pdf-page-media {
  justify-self: stretch;
}

.pdf-page-card {
  background: transparent;
}

.pdf-page-card img {
  width: 100%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 18px 45px rgba(3, 17, 31, 0.18));
}

.scrubber-grid .wide {
  grid-column: 1 / -1;
}

.h2s-market-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "before arrow1 after"
    "coking arrow2 flare"
    "chamberde chamber wide";
  align-items: center;
}

.scrubber-before { grid-area: before; }
.arrow-one { grid-area: arrow1; }
.scrubber-after { grid-area: after; }
.coking-before { grid-area: coking; }
.chamber-de { grid-area: chamberde; }
.arrow-two { grid-area: arrow2; }
.flare-after { grid-area: flare; }
.chamber-view { grid-area: chamber; }
.chamber-wide { grid-area: wide; }

.h2s-market-layout .motion-card img {
  min-height: 340px;
  max-height: 430px;
}

.h2s-market-layout .chamber-wide img {
  min-height: 340px;
  max-height: 430px;
}

.photo-arrow {
  color: var(--green-dark);
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  font-weight: 900;
  text-align: center;
  align-self: center;
  justify-self: center;
  pointer-events: none;
}

.h2s-market-layout figcaption {
  color: #172736;
  font-size: clamp(1.05rem, 1.65vw, 1.5rem);
  line-height: 1.16;
}

.scrubber-item figcaption span {
  color: var(--green-dark);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.08em;
  letter-spacing: 0;
}

.safety-media .motion-card img,
.market-coverage .motion-card img {
  min-height: 330px;
  max-height: 390px;
}

#applications .pdf-media.single {
  max-width: 780px;
  justify-self: center;
}

#applications .motion-card img {
  min-height: 390px;
  max-height: 560px;
}

.production-stack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.production-stack .motion-card:first-child {
  grid-column: auto;
  width: auto;
  justify-self: center;
}

.production-stack .motion-card:first-child img {
  min-height: 320px;
  max-height: 380px;
}

.production-stack .motion-card img {
  min-height: 260px;
  max-height: 330px;
}

.tube-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tube-stack .motion-card img {
  min-height: 250px;
  max-height: 320px;
}

.pdf-section:has(.section-kopman) .motion-card img {
  min-height: 430px;
}

.video-title {
  margin-top: 22px;
  color: var(--green-dark);
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.video-card {
  align-self: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(4, 20, 39, 0.08);
}

.youtube-poster {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.youtube-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease, filter 700ms ease;
}

.youtube-poster:hover img {
  transform: scale(1.045);
  filter: brightness(0.88) saturate(1.05);
}

.youtube-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(76px, 9vw, 118px);
  aspect-ratio: 1.42;
  border-radius: 18px;
  background: #ff0000;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
  transform: translate(-50%, -50%);
}

.youtube-play::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 24px solid #ffffff;
  content: "";
  transform: translate(-38%, -50%);
}

#gallery .section-kopman {
  width: min(420px, 70vw);
}

.gallery-kopman {
  margin-inline: auto;
}

.circle-gallery {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  align-items: center;
  max-width: 1100px;
  margin-inline: auto;
}

.circle-gallery .motion-card {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}

.circle-gallery .motion-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  padding: 0;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(620px, 1.18fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  padding: clamp(82px, 10vw, 138px) clamp(18px, 5vw, 82px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(3, 15, 31, 0.86), rgba(4, 38, 66, 0.72)),
    url("assets/images/principal-picture.png") center / cover no-repeat;
}

.contact-logo {
  width: min(360px, 64vw);
  margin: 0 auto 20px;
}

.contact-kopman {
  width: min(430px, 70vw);
  margin: 0 auto 28px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.92);
}

.contact-copy p {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.contact-panel {
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-panel h3 {
  margin-bottom: 8px;
}

.contact-role {
  margin-bottom: 16px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-panel a {
  display: block;
  margin-top: 12px;
  color: #0b4f8a;
  font-weight: 800;
  overflow-wrap: normal;
  word-break: normal;
}

.contact-panel .email-link {
  font-size: clamp(0.74rem, 0.95vw, 0.86rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.phone-link {
  position: relative;
}

.phone-link:hover::after,
.email-link:hover::after {
  position: absolute;
  left: 0;
  top: calc(100% + 7px);
  z-index: 2;
  min-width: 190px;
  padding: 8px 10px;
  border-radius: 4px;
  color: #ffffff;
  background: var(--green-dark);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.phone-link:hover::after {
  content: "Call this number";
}

.email-link {
  position: relative;
}

.email-link:hover::after {
  min-width: 210px;
  content: "Send email";
}

.contact-panel img {
  width: 128px;
  margin-top: 24px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.contact-panel .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 48px;
  margin-top: 0;
  padding: 0;
  border: 2px solid rgba(11, 79, 138, 0.22);
  border-radius: 50%;
  color: #0b4f8a;
  background: rgba(255, 255, 255, 0.84);
  font-family: "Arial Black", Inter, sans-serif;
  font-size: 1.1rem;
  line-height: 1;
  text-transform: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.contact-panel .social-links a:hover {
  color: var(--deep-blue);
  border-color: var(--green);
  background: var(--green);
  transform: translateY(-3px);
}

.social-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 82px);
  color: rgba(255, 255, 255, 0.78);
  background: #04101f;
}

.site-footer div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.footer-ehs-logo {
  width: 120px;
  max-height: 84px;
}

.footer-kopman-logo {
  width: 170px;
  max-height: 130px;
  object-fit: contain;
  padding: 5px;
  margin-left: -36px;
  background: rgba(255, 255, 255, 0.92);
}

.site-footer p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
}

@media (max-width: 1040px) {
  .site-nav {
    position: fixed;
    top: 76px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 8px;
    background: rgba(4, 20, 39, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 15px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu-button {
    display: block;
  }

  .hero,
  .pdf-section,
  #applications,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: center;
    padding-top: 126px;
  }

  .hero-logo {
    width: min(310px, 58vw);
    max-height: 18vh;
    margin: 0 0 50px -4px;
    transform: translateY(-70px);
  }

  .pdf-media.three-up,
  .scrubber-grid,
  .h2s-market-layout,
  .circle-gallery,
  .final-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .h2s-market-layout {
    grid-template-areas:
      "before after"
      "arrow1 arrow1"
      "coking flare"
      "arrow2 arrow2"
      "chamberde chamber"
      "wide wide";
  }

  .scrubber-grid .wide {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding-inline: 16px;
  }

  .hero {
    min-height: 96vh;
    padding: 108px 18px 72px;
  }

  .hero-logo {
    width: min(100%, 230px);
    max-height: 130px;
    margin: 0 0 42px -2px;
    transform: translateY(-44px);
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-panel .email-link {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: clamp(2.45rem, 14vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .pdf-section,
  .contact {
    padding-inline: 18px;
  }

  .pdf-media.two-up,
  .pdf-media.three-up,
  .scrubber-grid,
  .h2s-market-layout,
  .circle-gallery,
  .final-photo-grid,
  .pdf-lists {
    grid-template-columns: 1fr;
  }

  .pdf-media.safety-media {
    grid-template-columns: minmax(96px, 1fr) minmax(96px, 0.58fr) minmax(96px, 1fr);
    gap: 8px;
  }

  .safety-arrows {
    font-size: 0.74rem;
    letter-spacing: 0.03em;
  }

  .h2s-market-layout {
    grid-template-areas:
      "before"
      "arrow1"
      "after"
      "coking"
      "arrow2"
      "flare"
      "chamberde"
      "chamber"
      "wide";
  }

  .scrubber-grid .wide {
    grid-column: auto;
  }

  .motion-card img {
    min-height: 230px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
