.company-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: max(570px, 48vw, min(calc(100svh - 124px), 60vw));
  padding-block: clamp(52px, 7vw, 110px);
  background: #292f27;
  color: #faf9f4;
}

.company-image,
.company-image picture,
.company-image picture::after {
  position: absolute;
  inset: 0;
}

.company-image {
  margin: 0;
  z-index: -1;
  pointer-events: none;
}

.company-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 58%;
}

.company-image picture::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(22, 29, 23, .82), rgba(22, 29, 23, .54) 34%, transparent 66%),
    linear-gradient(0deg, rgba(22, 29, 23, .7), transparent 17%);
}

.company-image figcaption {
  position: absolute;
  right: var(--pad);
  bottom: 23px;
  left: var(--pad);
  color: #faf9f4;
  text-align: right;
  font-size: 12px;
  line-height: 1.45;
}

.company-copy {
  width: min(33vw, 36rem);
}

.company-copy h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(48px, 5.9vw, 102px);
  line-height: .98;
  letter-spacing: -.055em;
}

.company-intro {
  max-width: 44ch;
  margin: 24px 0 0;
  color: #f5f4eb;
  font-size: clamp(16px, 1.24vw, 19px);
  line-height: 1.65;
}

.company-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}

.company-actions .button { white-space: nowrap; }

.company-actions .text-link {
  color: #faf9f4;
  border-color: #e1ded0;
}

.company-actions :is(a, button):focus-visible {
  outline: 2px solid #faf9f4;
  outline-offset: 4px;
}

.about-page .site-footer { border-top: 1px solid #d4d9d1; }

.about-page :is(.button, .text-link) > span[aria-hidden="true"] {
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background: currentColor;
  font-size: 0;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 13 13 3M3 3h10v10' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 980px) {
  .company-hero {
    align-items: flex-start;
    min-height: calc(100svh - 112px);
    padding-top: clamp(38px, 7vw, 72px);
    padding-bottom: calc(65vw + 30px);
  }

  .company-copy { width: min(100%, 33rem); }
  .company-copy h1 { font-size: clamp(39px, 10vw, 78px); }
  .company-intro { margin-top: 18px; }
  .company-actions { margin-top: 22px; }

  .company-image picture {
    top: auto;
    height: min(100%, 150vw);
    mask-image: linear-gradient(180deg, transparent, #000 min(22vw, 120px));
  }

  .company-image img { object-position: center bottom; }

  .company-image picture::after {
    background:
      linear-gradient(180deg, rgba(22, 29, 23, .58), rgba(22, 29, 23, .32) 42%, transparent 64%),
      linear-gradient(0deg, rgba(22, 29, 23, .83), transparent 18%);
  }

  .company-image figcaption {
    bottom: 15px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .company-hero {
    min-height: min(calc(100svh - 104px), 630px);
    padding-top: 30px;
    padding-bottom: calc(59vw + 32px);
  }
  .company-copy h1 { font-size: clamp(33px, 8.4vw, 48px); }
  .company-intro { margin-top: 13px; font-size: 15px; line-height: 1.55; }
  .company-actions { margin-top: 16px; }
  .company-actions { gap: 8px 14px; }
  .company-actions .button { min-height: 44px; padding: 10px 13px; gap: 10px; }
  .company-actions .text-link { min-height: 44px; align-items: center; gap: 10px; padding-bottom: 0; }
}

.company-factory {
  padding-block: clamp(52px, 6vw, 94px);
  background: #f5f4ef;
  color: #253128;
}

.company-factory-inner {
  width: min(100%, 1440px);
  margin-inline: auto;
}

.company-factory-heading {
  margin-bottom: clamp(20px, 2.4vw, 34px);
}

.company-factory-heading h2 {
  margin: 0;
  font-size: clamp(35px, 5.2vw, 78px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1;
}

.company-factory-feature {
  display: grid;
  grid-template-columns: minmax(0, 2.45fr) minmax(260px, 1fr);
  margin: 0;
  background: #e7eae1;
}

.company-factory-photo {
  aspect-ratio: 1.88;
  overflow: hidden;
  background: #d7ded4;
}

.company-factory-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-factory-caption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 22px;
  padding: clamp(24px, 3vw, 48px);
}

.company-factory-caption h3 {
  margin: 0 0 12px;
  font-size: clamp(23px, 2.8vw, 42px);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.company-factory-caption p {
  max-width: 36ch;
  margin: 0;
  color: #465448;
  font-size: 15px;
  line-height: 1.5;
}

.company-factory-caption .text-link {
  min-height: 32px;
}

.company-factory-controls {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 7px;
  padding-top: 17px;
  border-top: 1px solid #c4cdc1;
}

.company-factory-controls[hidden] { display: none; }

.company-factory-count {
  margin-inline-end: auto;
  color: #465448;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.company-factory-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  place-items: center;
  padding: 0;
  border: 1px solid #a8b6a9;
  background: transparent;
  color: #253128;
  cursor: pointer;
}

.company-factory-controls button:hover {
  background: #253128;
  border-color: #253128;
  color: #faf9f4;
}

.company-factory-controls svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.company-factory-thumbnails {
  display: flex;
  gap: clamp(7px, .85vw, 13px);
  overflow-x: auto;
  margin: 15px 0 0;
  padding: 3px 3px 11px;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #9da99c transparent;
  scroll-snap-type: x proximity;
}

.company-factory-thumbnails li {
  flex: 0 0 clamp(76px, 10vw, 144px);
  scroll-snap-align: start;
}

.company-factory-thumbnails a {
  display: block;
  border: 2px solid transparent;
  padding: 3px;
}

.company-factory-thumbnails a[aria-current="true"] { border-color: #a7432a; }
.company-factory-thumbnails a:hover { background: #dce2d9; }

.company-factory :is(a, button):focus-visible {
  outline: 2px solid #253128;
  outline-offset: 1px;
}

.company-factory-thumbnails img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.57;
  object-fit: cover;
  background: #d7ded4;
}

@media (max-width: 760px) {
  .company-factory { padding-block: 28px 34px; }
  .company-factory-feature { grid-template-columns: minmax(0, 1fr); }
  .company-factory-photo { aspect-ratio: 1.48; }
  .company-factory-caption { gap: 12px; padding: 20px; }
  .company-factory-caption h3 { margin-bottom: 6px; }
  .company-factory-controls { padding-top: 11px; }
  .company-factory-thumbnails { margin-top: 10px; }
}

@media (max-width: 760px), (max-width: 999px) and (max-height: 520px) and (orientation: landscape) {
  .company-factory-caption [data-full-photo] { display: none; }
}
