.company-home {
  --home-dark: #0c1726;
  color: #1b2c3d;
  background: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hero-slider {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--home-dark);
}

.hero-slide {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: max(640px, 100svh);
  padding-block: var(--header) 166px;
  background: var(--home-dark);
}

.hero-slide[hidden], .hero-controls[hidden],
.method-panel[hidden], .method-tabs[hidden] {
  display: none;
}

.hero-slide > img, .hero-slide::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide > img {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.hero-slide::after {
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, #040b17df, #07122089 40%, #0a162019 82%),
    linear-gradient(0deg, #050b15bf, transparent 34%, transparent 69%, #030a1587);
}

.hero-slide:not(.hero-machining):not([hidden]) > img {
  animation: hero-image-in .42s ease-out both;
}

.hero-copy h2 {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: clamp(43px, 3.3vw, 63px);
  font-weight: 420;
  letter-spacing: -.055em;
  line-height: 1.29;
}

.hero-copy strong {
  font-weight: 820;
}

.hero-copy p {
  max-width: 500px;
  margin-bottom: 20px;
  color: #edf4fb;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.65;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-block: 7px;
  border-bottom: 1px solid #dce7f4;
  font-weight: 650;
}

.hero-link:hover {
  color: #cee8ff;
}

.hero-controls {
  position: absolute;
  inset: auto 0 27px;
  z-index: 1;
}

.hero-arrows {
  position: absolute;
  bottom: clamp(134px, 28vh, 252px);
  left: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-arrows button,
.hero-index button,
.method-tabs button {
  color: inherit;
  background: transparent;
  border: 0;
}

.hero-arrows button {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}

.hero-arrows button:hover,
.hero-arrows .hero-autoplay {
  background: #ffffff28;
}

.hero-arrows .hero-autoplay {
  margin-right: 3px;
  font-size: 15px;
  font-weight: 750;
}

.hero-index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(100%, 810px);
}

.hero-index button {
  position: relative;
  min-height: 52px;
  padding: 13px 5px 0;
  border-top: 3px solid #c7d4e577;
  color: #e1e8f0;
  font-size: clamp(13px, .9vw, 17px);
  font-weight: 680;
  white-space: nowrap;
}

.hero-index button::before {
  position: absolute;
  inset: -3px 0 auto;
  height: 3px;
  content: "";
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

.hero-index button[aria-pressed="true"] {
  color: #fff;
  font-weight: 840;
  font-size: clamp(15px, 1.08vw, 20px);
}

.hero-index button[aria-pressed="true"]::before {
  transform: scaleX(1);
}

.is-playing .hero-index button[aria-pressed="true"]::before {
  animation: hero-progress 8s linear both;
}

.hero-scroll {
  position: absolute;
  right: clamp(22px, 4vw, 77px);
  bottom: 45px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 19px;
  writing-mode: vertical-rl;
  font-size: 13px;
  letter-spacing: .12em;
}

.hero-scroll span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #fff9;
  border-radius: 50%;
  writing-mode: horizontal-tb;
  font-size: 17px;
  letter-spacing: 0;
}

.hero-scroll:hover span {
  background: #fff3;
}

.method-showcase {
  display: grid;
  align-items: center;
  min-height: calc(100svh - var(--header));
  padding-block: clamp(65px, 7vw, 120px);
  background: #fff;
}

.method-wrap {
  position: relative;
}

.method-tabs {
  position: absolute;
  top: 8%;
  left: 0;
  z-index: 2;
  display: flex;
  gap: 2px;
}

.method-tabs button {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  padding: 0;
}

.method-tabs button::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: #9cacb7;
}

.method-tabs button[aria-selected="true"]::after {
  width: 15px;
  height: 8px;
  border-radius: 8px;
  background: #318350;
}

.method-panel {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: clamp(32px, 5vw, 84px);
  animation: method-in .42s ease-out both;
}

.method-copy {
  padding-top: 54px;
}

.method-panel h2,
.feature-heading h2,
.overview-grid h2,
.home-contact h2,
.company-home .process-section h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 2.85vw, 54px);
  letter-spacing: -.055em;
  line-height: 1.24;
}

.method-panel h2 {
  font-weight: 450;
}

.method-panel h2 strong {
  font-weight: 820;
}

.method-panel p, .feature-heading p, .overview-grid p {
  max-width: 500px;
  color: #4c6072;
  font-size: clamp(15px, 1.14vw, 19px);
  line-height: 1.68;
}

.method-panel img {
  width: 100%;
  aspect-ratio: 1.55;
  height: auto;
  object-fit: cover;
  background: #e3eaf1;
}

.method-link {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  min-height: 46px;
  margin-top: 6px;
  padding: 8px 17px;
  border: 1px solid #2e7850;
  color: #255e42;
  font-weight: 720;
}

.method-link:hover {
  background: #eef7f1;
}

.equipment-band, .products-band {
  padding-block: clamp(43px, 5vw, 81px);
  border-top: 1px solid #e4ebf0;
}

.equipment-band {
  background: #f4f7fa;
}

.products-band {
  background: #fff;
}

.feature-band {
  display: grid;
  gap: 23px;
}

.feature-heading p {
  margin-bottom: 0;
}

.equipment-grid, .products-grid {
  display: grid;
  gap: clamp(10px, 1.1vw, 18px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.equipment-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.equipment-tile {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: clamp(126px, 10vw, 174px);
  padding: 13px 9px;
  border: 1px solid #d9e4ec;
  color: #203f59;
  background: #fff;
  text-align: center;
}

.equipment-tile svg {
  width: clamp(58px, 5vw, 88px);
  height: 48px;
  margin-bottom: 8px;
  fill: none;
  stroke: #335873;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.equipment-tile h3 {
  margin: 0 0 5px;
  font-size: clamp(15px, 1.1vw, 21px);
  letter-spacing: -.035em;
  line-height: 1.25;
}

.equipment-tile p {
  margin: 0;
  color: #4d6174;
  font-size: clamp(12px, .86vw, 15px);
  line-height: 1.4;
}

.products-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.products-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid #dde6ee;
  background: #fff;
}

.products-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.72;
  object-fit: cover;
}

.products-grid figcaption {
  padding: 8px 12px;
  color: #20384e;
  font-size: 14px;
  font-weight: 700;
}

.company-overview, .home-contact {
  padding-block: clamp(44px, 5vw, 82px);
}

.company-overview {
  background: #f4f7fa;
}

.overview-grid, .home-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(28px, 6vw, 100px);
}

.video-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  margin: 0;
  color: #4e6175;
  background: #e7edf3;
  border: 1px solid #d6e0e9;
  font-size: 17px;
  font-weight: 650;
}

.company-home .process-section {
  padding-block: clamp(40px, 4.5vw, 74px);
}

.company-home .process-flow {
  margin-top: 29px;
}

.company-home .process-flow h3 {
  margin: 0 0 8px;
}

.home-contact-grid {
  align-items: start;
}

.home-contact-grid section + section {
  padding-left: clamp(24px, 3vw, 49px);
  border-left: 1px solid #dce4eb;
}

.home-contact-grid .fax {
  margin: 10px 0 7px;
  color: #536579;
  font-size: 14px;
}

.dark-outline {
  color: #162c46;
  border-color: #aebdd0;
  background: #fff;
}

.dark-outline:hover {
  background: #ecf1f6;
}

.dark-button {
  color: #fff;
  background: #203b58;
}

.dark-button:hover {
  background: #102943;
}

@keyframes hero-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes hero-image-in {
  from { opacity: .5; }
  to { opacity: 1; }
}

@keyframes method-in {
  from { opacity: .45; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 880px) {
  .method-showcase { min-height: 0; }

  .method-tabs {
    position: relative;
    inset: auto;
    margin-bottom: 10px;
  }

  .method-copy { padding: 0; }
}

@media (max-width: 680px) {
  .hero-slide {
    min-height: max(630px, 100svh);
    padding-block: var(--header) 152px;
  }

  .hero-machining > img { object-position: 38% center; }

  .hero-slide::after {
    background:
      linear-gradient(90deg, #061120b5, #0611204d),
      linear-gradient(0deg, #050b15dd, transparent 42%, #050b151a 72%, #050b1573);
  }

  .hero-copy h2 {
    font-size: clamp(32px, 8.6vw, 46px);
  }

  .hero-copy p {
    max-width: 300px;
    line-height: 1.54;
  }

  .hero-controls { bottom: 18px; }
  .hero-arrows { bottom: 88px; }

  .hero-index button { font-size: 12px; }
  .hero-index button[aria-pressed="true"] { font-size: 13px; }

  .hero-scroll {
    right: 18px;
    bottom: 108px;
    writing-mode: horizontal-tb;
    font-size: 0;
  }

  .hero-scroll span { width: 36px; height: 36px; }

  .method-panel, .overview-grid, .home-contact-grid {
    grid-template-columns: 1fr;
  }

  .method-panel img { aspect-ratio: 1.72; }

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

  .equipment-tile { min-height: 112px; }

  .equipment-tile svg {
    height: 36px;
    margin-bottom: 5px;
  }

  .home-contact-grid section + section {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid #dce4eb;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide:not(.hero-machining):not([hidden]) > img,
  .is-playing .hero-index button[aria-pressed="true"]::before,
  .method-panel {
    animation: none;
  }
}
